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
What steps will reproduce the problem?
http://play.golang.org/p/_v-ah5iWAR
What is the expected output?
No error
What do you see instead?
crypto/tls: failed to parse key: ASN.1 structure error: tags don't match (2 vs {class:0
tag:16 length:725 isCompound:true}) {optional:false explicit:false application:false
defaultValue:<nil> tag:<nil> stringType:0 set:false omitEmpty:false} int @4
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
OSX 10.7.4
Which version are you using? (run 'go version')
go version go1.0.2
Please provide any additional information below.
A pem file with the following order is successfully parse:
-----BEGIN RSA PRIVATE KEY-----
... key ...
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
... cert ...
-----END CERTIFICATE-----
But one with the order reversed does not:
-----BEGIN CERTIFICATE-----
... cert ...
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
... key ...
-----END RSA PRIVATE KEY-----
The text was updated successfully, but these errors were encountered:
X509KeyPair wasn't really supposed to allow the certificate and
key to be in the same file, but it did work if you put the key
first. Since some HTTPS servers support loading keys and certs
like this, this change makes it work in either order.
Fixesgolang#3986.
R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6499103
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: