RSA生成公钥私钥

1.openssl genrsa -out rsa_private_key.pem 1024
2.openssl rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
3.openssl pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -outform PEM -nocrypt

 

你可能感兴趣的:(基础)