Thursday, November 6, 2008

How to convert API Certificate (pem format) to PKCS12 format

If you do not already have the certificate, here are the steps.

  • Login into PayPal account and click on Profile.
  • Click on API access under Account Information.
  • Click Request API credentials. Select radio button for Request API Certificate. Click Agree and Submit. Download Certificate.
Once you have downloaded the certificate, you need to convert it to secure form. Here are the steps for that.

Goto http://www.slproweb.com/products/Win32OpenSSL.html

1) Visual C++ 2008 Redistributables get this first and install it

2) Win32 OpenSSL v0.9.8i Light then install this. Make sure the dll are installed in bin location.

then goto c:\openSSL\bin (location of openSSL)

Type

openssl pkcs12 -export -in C:\paypalDashboard\cert_key_pem.txt -inkey C:\paypalDashboard\cert_key_pem.txt -out C:\paypalDashboard\paypal_cert.p12


No comments: