Skip to content

Change RSA to PKCS#1

David Phillips requested to merge alyptik:rsafix into master

Created by: alyptik

Change RSA private key format to PKCS#1.

BEGIN RSA PRIVATE KEY is PKCS#1 and is just an RSA key. It is essentially just the key object from PKCS#8, but without the version or algorithm identifier in front. BEGIN PRIVATE KEY is PKCS#8 and indicates that the key type is included in the key data itself.

From: https://stackoverflow.com/questions/20065304/what-is-the-differences-between-begin-rsa-private-key-and-begin-private-key

More information: https://polarssl.org/kb/cryptography/asn1-key-structures-in-der-and-pem

Merge request reports