RSA public & private key:option two:generate by openssl commond:
1.
genrsa rsa private key: openssl genrsa -out rsa_private_key.pem 1024
2.
transe to PKCS8, and copy the output as thirdPrivateKey: openssl pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -nocrypt -outform PEM
3.
genrsa rsa public key, and copy the text as thirdPublicKey: openssl rsa -in rsa_private_key.pem -out rsa_public_key.pem -pubout
Modified at 2024-03-11 06:32:20