#yum -y install openssl.x86_64 openssl-devel.x86_64 openssl-libs.x86_64
#openssl genrsa -out rsa_private_key_2048.pem
#openssl pkcs8 -topk8 -in rsa_private_key_2048.pem -out pkcs8_rsa_private_key_2048.pem -nocrypt
#openssl rsa -in rsa_private_key_2048.pem -out rsa_public_key_2048.pem -pubout
原文地址:http://blog.51cto.com/wangqh/2125222