Openssl pkcs12 -in c:\ssl\s_client\clientcert.pfx -out
c:\ssl\s_client\splited The generated file,splited, is in PEM format. It contains two parts, one is a private key, the other one is a certificate. Copy content between -----BEGIN RSA PRIVATE KEY----- and -----END RSA PRIVATE KEY----- (including these two lines) and save them into a seperated file called private.pem. Copy content between -----BEGIN CERTIFICATE-----
and -----END CERTIFICATE----- (including these two lines) and save them into a seperated file called certificate.pem.
|
|
来自: digitaldreamer > 《Security》