crypto/x509/pkix: make 'v1' the default CRL version.
crypto/x509/pkix: make 'v1' the default CRL version.

PKIX versions are off-by-one, so v1 is actually a zero on the wire, v2
is a one, and so on.

The RFC says that the version in a CRL is optional, but doesn't say what
the default is. Since v2 is the only accepted version, I had made the
default v2. However, OpenSSL considers the default to be v1. Also, if
the default is v2 and the element is optional then we'll never actually
write v2 on the wire. That's contrary to the RFC which clearly assumes
that v2 will be expressed on the wire in some cases.

Therefore, this change aligns with OpenSSL and assumes that v1 is the
default CRL version.

Fixes #13931

[1] https://tools.ietf.org/html/rfc5280#section-5.1

Change-Id: Ic0f638ebdd21981d92a99a882affebf3a77ab71a
Reviewed-on: https://go-review.googlesource.com/20544
Reviewed-by: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>

4ad/go,ImJasonH/go,vanloswang/go,vanloswang/go,momchil-velikov/go,codestation/go,linux-on-ibm-z/go,akutz/go,miolini/go,miolini/go,ganboing/go-esx,ganboing/go-esx,golang/go,suncycheng/go,theif519/go,golang/go,ImJasonH/go,linux-on-ibm-z/go,suncycheng/go,goodlang/good,theif519/go,goodlang/good,codestation/go,4ad/go,akutz/go,vanloswang/go,golang/go,theif519/go,akutz/go,polyverse-security/go,akutz/go,miolini/go,golang/go,4ad/go,vsekhar/elastic-go,miolini/go,derekmarcotte/go,linux-on-ibm-z/go,codestation/go,golang/go,cloudflare/go,vsekhar/elastic-go,vsekhar/elastic-go,cloudflare/go,cloudflare/go,cloudflare/go,Samurais/go,vanloswang/go,ganboing/go-esx,goodlang/good,nawawi/go,suncycheng/go,golang/go,CAFxX/go,miolini/go,goodlang/good,Cofyc/go,linux-on-ibm-z/go,goodlang/good,josharian/go,nawawi/go,4ad/go,theif519/go,ganboing/go-esx,suncycheng/go,theif519/go,nawawi/go,Samurais/go,Cofyc/go,vanloswang/go,goodlang/good,josharian/go,polyverse-security/go,golang/go,vanloswang/go,4ad/go,polyverse-security/go,theif519/go,cloudflare/go,suncycheng/go,akutz/go,vsekhar/elastic-go,CAFxX/go,Samurais/go,ImJasonH/go,4ad/go,CAFxX/go,momchil-velikov/go,Cofyc/go,vanloswang/go,polyverse-security/go,nawawi/go,ganboing/go-esx,momchil-velikov/go,josharian/go,CAFxX/go,ImJasonH/go,derekmarcotte/go,josharian/go,nawawi/go,Cofyc/go,vsekhar/elastic-go,derekmarcotte/go,suncycheng/go,Cofyc/go,nawawi/go,akutz/go,akutz/go,linux-on-ibm-z/go,theif519/go,derekmarcotte/go,vsekhar/elastic-go,miolini/go,codestation/go,ImJasonH/go,cloudflare/go,vanloswang/go,4ad/go,codestation/go,cloudflare/go,momchil-velikov/go,ImJasonH/go,akutz/go,momchil-velikov/go,goodlang/good,suncycheng/go,Cofyc/go,linux-on-ibm-z/go,CAFxX/go,Cofyc/go,ImJasonH/go,momchil-velikov/go,ganboing/go-esx,ImJasonH/go,derekmarcotte/go,josharian/go,ganboing/go-esx,Samurais/go,Samurais/go,Samurais/go,nawawi/go,suncycheng/go,derekmarcotte/go,polyverse-security/go,Samurais/go,CAFxX/go,vsekhar/elastic-go,derekmarcotte/go,josharian/go,christopher-henderson/Go,polyverse-security/go,momchil-velikov/go,Cofyc/go,momchil-velikov/go,4ad/go,codestation/go,codestation/go,nawawi/go,golang/go,josharian/go,derekmarcotte/go,codestation/go,linux-on-ibm-z/go,cloudflare/go,CAFxX/go,miolini/go,linux-on-ibm-z/go,ganboing/go-esx,vsekhar/elastic-go,goodlang/good,Samurais/go,theif519/go,CAFxX/go,josharian/go,polyverse-security/go,polyverse-security/go,miolini/go