Differences between “BEGIN RSA PRIVATE KEY” and “BEGIN PRIVATE KEY”
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I was writing a program that imports private keys from a .pem file and create a private key object to use it later.. the problem I have faced is that some pem files header begin with -----BEGIN PRIVATE KEY----- while others begin with -----BEGIN RSA PRIVATE KEY----- through my search I knew that the first ones are PKCS#8 formatted but I couldn't know what format does the other one belongs to. 回答1: See https://polarssl.org/kb/cryptography/asn1-key-structures-in-der-and-pem (search the page for "BEGIN RSA PRIVATE KEY") ( archive link for