-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
Description
EncodeTrustStore() supports using the CN as the friendly name. Encode() does not. Is there a chance it can be added?
If you use openssl, you can do it for key+cert, not just truststore (cert-only); actually you can provide the friendly name separately, which might be an even easier solution:
openssl pkcs12 -export -in cert.pem -inkey key.pem -name "friendlyName" -out new.p12
So perhaps:
func EncodeTrustStore(rand Reader, certs []*x509Certificate, password, friendlyName string) (pfxData []byte, err error)
func Encode(rand Reader, privateKey interface{}, certs []*x509Certificate, password, friendlyName string) (pfxData []byte, err error)olia-dev, fadecore, trunet and iwat