apns icon indicating copy to clipboard operation
apns copied to clipboard

certificate pass phrase

Open manuks opened this issue 9 years ago • 1 comments

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

manuks avatar Apr 10 '15 11:04 manuks

To quote @minux on https://github.com/golang/go/issues/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.)

mrnickel avatar Sep 21 '15 01:09 mrnickel