RSA密钥生成工具: C:\OPENSSL\bin genrsa -out pem/private_key.pem 1024 C:\OPENSSL\bin rsa -in pem/private_key.pem -pubout -out pem/public_key.pem C:\OPENSSL\bin pkcs8 -topk8 -inform PEM -in pem/private_key.pem -outform PEM -nocrypt C:
C:\OPENSSL\bin> genrsa -out pem/private_key.pem 1024
C:\OPENSSL\bin> rsa -in pem/private_key.pem -pubout -out pem/public_key.pem
C:\OPENSSL\bin> pkcs8 -topk8 -inform PEM -in pem/private_key.pem -outform PEM -nocrypt
C:\OPENSSL\bin> pkcs8 -topk8 -inform PEM -in pem/private_key.pem -outform PEM -nocrypt -out pem/private_key_pkcs8.pem
【openssl.bat如下】
1. [代码][Shell/批处理]代码
openssl.exe genrsa -out pem/private_key.pem 1024 openssl.exe rsa -in pem/private_key.pem -pubout -out pem/public_key.pem openssl.exe pkcs8 -topk8 -inform PEM -in pem/private_key.pem -outform PEM -nocrypt openssl.exe pkcs8 -topk8 -inform PEM -in pem/private_key.pem -outform PEM -nocrypt -out pem/private_key_pkcs8.pem