SSL certificate format from p12 solved Postman pem format to use public and private key

purpose

Time (non-Chrome extended version) app and can not read client certificate system, the debugging to send a client certificate https Postman request must set for himself.
The system has direct export certificate cer and p12 in two formats, Postman need is pem text format, so it needs to be converted. In addition Nginx server also use certificates in this format.

step

Export p12 certificate

Open Keychain Access on Mac, find their own client certificate to export, right - Export - Select p12 format, save it.

Save the time you need to enter a password p12, when the conversion will be used later, please write it down.

Change

Two command conversion with a public and private key, respectively.
Two commands will need to use the previous step password.
Generate a key step that would go on to set a key password, the same behind the rear will be used, please write it down.

openssl pkcs12 -in your.p12 -clcerts -nokeys -out your-public-cert.pem
openssl pkcs12 -in your.p12 -nocerts -out your-private-key.pem

public-cert.pem:

public-cert.pem

private-key.pem:

private-key.pem

use

Set in the Postman

Guess you like

Origin www.cnblogs.com/ygw1010/p/10972665.html