Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/tls: Minor issues with doc and error msgs #1146
Which revision are you using? (hg identify) 5a552276eca3 tip Struggling a bit with tls due to these doco/error msg: Doc for tls.LoadX509KeyPair should say the certfile and keyfile have to be PEM encoded. Other encodings won't work. c.sendAlert(alertBadCertificate)) occurs 8 times in handshake_client.go and handshake_server.go. A detail field of which error caused the BadCert would help debugging: I have a cert on a server which is accepted by "openssl s_client -tls1 -connect localhost:1200" but not by tls.Dial, and tracking this down means reading code rather than error messages.
This issue was closed.