RSA私钥文件生成:

openssl genrsa -out private_rsa.pem  1024

RSA公钥文件生成:

openssl rsa -in private_rsa.pem -pubout -out public_rsa.pem

将BASE64编码的文件装换成二进制编码:

openssl base64 -d -in private_rsa.pem -out private.pem

打印公钥信息:

openssl rsa -in private_rsa.pem -modulus

打印所有信息到文件:

openssl rsa -in private_rsa.pem -text -out private.txt

查看公钥明细:

openssl rsa -in public_rsa.pem -pubin -text


你可能感兴趣的文章

评论区

发表评论

必填

选填

选填

必填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。