Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certificate pass phrase #32

Open
manuks opened this issue Apr 10, 2015 · 1 comment
Open

certificate pass phrase #32

manuks opened this issue Apr 10, 2015 · 1 comment

Comments

@manuks
Copy link

manuks commented Apr 10, 2015

How to set a certificate pass phrase? Any example implementation with pass phrase?

@mrnickel
Copy link

To quote @minux on golang/go#10181

Use http://golang.org/pkg/crypto/x509/#DecryptPEMBlock and then
http://golang.org/pkg/crypto/tls/#X509KeyPair if you need to read
password protected PEM.

(LoadX509KeyPair can't open password protected PEM because there
is no way for the function to know the password.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants