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
Created a self-signed certificate. This goes away if I set a SerialNumber on the template. The documentation says that SerialNumber will be used from the template, but not that it is required (so it's reasonable to think that it may be randomly chosen if not set). Either way, I'd argue that there should be a check to detect this and return an error, rather than an undocumented panic situation.
(4) What did you expect to see?
An error.
(5) What did you see instead?
A panic.
The text was updated successfully, but these errors were encountered:
bradfitz
changed the title
SIGSEGV in x509.CreateCertificate
crypto/x509: CreateCertificate can panic in asn1 code
Aug 4, 2016
Whether that's a minimal code example depends on where the problem lies. It may be appropriate for asn1 to panic on a null big.Int; it may be that the appropriate fix is for the x509 package to ensure it never is and error if so.
Please answer these questions before submitting your issue. Thanks!
(1) What version of Go are you using (
go version
)?go version go1.7rc4 linux/amd64
(2) What operating system and processor architecture are you using (
go env
)?(3) What did you do?
https://play.golang.org/p/P68H4kx8AF
Created a self-signed certificate. This goes away if I set a
SerialNumber
on the template. The documentation says that SerialNumber will be used from the template, but not that it is required (so it's reasonable to think that it may be randomly chosen if not set). Either way, I'd argue that there should be a check to detect this and return an error, rather than an undocumented panic situation.(4) What did you expect to see?
An error.
(5) What did you see instead?
A panic.
The text was updated successfully, but these errors were encountered: