We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b2880 commit ab33eeeCopy full SHA for ab33eee
pkcs12/pkcs12.go
@@ -104,6 +104,10 @@ func unmarshal(in []byte, out interface{}) error {
104
}
105
106
// ToPEM converts all "safe bags" contained in pfxData to PEM blocks.
107
+//
108
+// Note that although the returned PEM blocks for private keys have type
109
+// "PRIVATE KEY", the bytes are not encoded according to PKCS #8, but according
110
+// to PKCS #1 for RSA keys and SEC 1 for ECDSA keys.
111
func ToPEM(pfxData []byte, password string) ([]*pem.Block, error) {
112
encodedPassword, err := bmpString(password)
113
if err != nil {
0 commit comments