openssl 生成公私钥





openssl genrsa -out private_key.pem 1024 
openssl pkcs8 -topk8 -inform PEM -in private_key.pem -outform PEM –nocrypt  //此时输出的私钥即为结果私钥
openssl rsa -in private_key.pem -pubout -out public_key.pem   // public_key.pem  此为结果公钥

你可能感兴趣的:(OpenSSL)