Skip to content

crypto/tls: Minor issues with doc and error msgs #1146

Description

@gopherbot

by jan.newmarch:

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions