Skip to main content
Perform the following step to extract and combine the client certificate and private key from the PKCS #12 into a single file:
1
Run the following command to extract the certificate and private key from the client endpoint PKCS #12 file and save them into mongodb_cert_and_privatekey.pem. Note that the -nodes parameter specifies that the private key should not be encrypted.
Text
$ openssl pkcs12 -in pki.p12 -nodes -out mongodb-cert-and-privatekey.pem