openssl> genrsa -out app_private_key.pem 2048 #生成私钥openssl> pkcs8 -topk8 -inform pem -in app_private_key.pem -outform pem -nocrypt -out app_private_key_pkcs8.pem #java开发者需要将私钥转换成pkcs8格式openssl> rsa -in app_private_key.pem -pubout -out app_public_key.pem #生成公钥openssl> exit #退出openssl程序




