How do I convert my PEM format certificate to PKCS12?

To convert your PEM certificate to a PKCS12 certificate, use a third-party tool. PayPal recommends OpenSSL, which you can download at www.openssl.org. The following instructions assume that you retain the default certificate filename of "cert_key_pem.txt."

Before you begin, note the following:

  • Windows users – If you get an error saying “openssl is not recognized as an internal or external command, operable program or batch file,” this means that openssl is not in your PATH. To resolve this, either add the directory that contains the OpenSSL binary to your system PATH or save your PEM certificate file in the directory where the OpenSSL binary is. Depending on where you’ve installed OpenSSL, you should find the OpenSSL binary (openssl.exe) in the OpenSSL installation bin folder.
  • UNIX users – These instructions are Windows-centric. Most UNIX hosts have OpenSSL already installed. If you’re on a UNIX host, the command to convert the PEM to a .p12 file is the same as for Windows. Check to see if you have OpenSSL by typing openssl at the command line and pressing Enter. If you get anything other than an error indicating that OpenSSL can’t be found, your machine likely has OpenSSL already installed and you can try running the command in Step 2.

1. Open a command prompt and navigate to the directory that contains the cert_key_pem.txt file.
2. Execute the following OpenSSL command to create a PKCS12 (.p12) file:

openssl pkcs12 -export -inkey cert_key_pem.txt -in cert_key_pem.txt -out cert_key.p12

Note: To convert a PKCS12 certificate to PEM, use the following command:

openssl pkcs12 -in cert_key.p12 -out cert_key.pem -nodes


3. After you enter the command, you'll be prompted to enter an Export Password. Choose a password or phrase and note the value you enter (PayPal Developer documentation calls this the "private key password.")
4. A file called cert_key.p12 is created in this directory. This is your .p12 file.

PayPal이 도울 수 있는 다양한 방법

사용자가 쿠키 사용에 동의하면 PayPal은 쿠키를 사용하여 사용자의 경험을 개선하고 맞춤설정하며 사용자가 다른 사이트를 방문할 때 파트너사에서 개인 맞춤형 PayPal 광고를 표시할 수 있도록 합니다. 쿠키 관리 및 자세히 알아보기