You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go version: go1.2.1 linux/amd64
Trying to parse an X509 certificate with a negative serial number results in the
following error:
x509: negative serial number
(see http://play.golang.org/p/zpXKadV5mo for an example)
This means an SSL/TLS connection cannot be established to a server that uses this kind
of certificate.
Although RFC 5280 [1] section 4.1.2.2 specifies that serial numbers MUST be positive, it
also says that implementations SHOULD handle non-positive serial numbers gracefully.
Note that RFC 2459 (obsoleted by RFC 3280, which was in turn obsoleted by 5280) did not
require the SN to be positive.
[1] http://www.ietf.org/rfc/rfc5280.txt