Skip to content
Snippets Groups Projects
Commit a32c41b4 authored by ale's avatar ale
Browse files

Fix PEM header of RSA private keys

parent eccbdffd
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ func encodePrivateKey(key crypto.Signer) ([]byte, error) {
switch priv := key.(type) {
case *rsa.PrivateKey:
pb = &pem.Block{
Type: "PRIVATE KEY",
Type: "RSA PRIVATE KEY",
Bytes: x509.MarshalPKCS1PrivateKey(priv),
}
case *ecdsa.PrivateKey:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment