Open the text file in a text editor
Open the text file in a text editor such as Notepad and separate the private key and the certificate intotwo separate files. The private key is indicated with the Begin and End RSAPrivate Key comment, certificate portion is indicated with the Begin and End Certificate comment. Save the private key called privatekey.pemand save the certificate in a file called certificate.pem. Other names be used. It is important that each file contains the comment in the correct syntax, with five dashes surroundingeach comment. Otherwise, you will receive an error later when trying to create the P12 certificate. Forexample, the privatekey.pem file should contain the following: —–BEGIN RSAPRIVATE KEY—–Your key is here—–END RSAPRIVATE KEY—– At this point, you have to use a cryptographic tool to convert the certificates to a PKCS12 (.p12) certifi- cate file. One example of such a tool is described in the PayPal documentation is OpenSSL, which isoffered in an easy installation version for Windows at www.slproweb.com. More information aboutOpenSSLcan also be found at www.openssl.org. Follow the instructions to download and installOpenSSL. Open a command window and navigate to the path where OpenSSL.exe is located (based on where the program). Copy your two .pem files to that same path to make this process easier. Typeopenssl.exe to run the program, and at the OpenSSLprompt, type the following command to convert files created previously: pkcs12 export inkey privatekey.pem in certificate.pem out my_paypal_cert.p12You are prompted to enter a password associated with the certificate. Make sure to write down this password for future use. Upon successful creation of the p12 certificate, a screen like the one shown 6-12 is displayed. Figure 6-12Type Exitto exit the OpenSSLtool. Verify that your .p12 certificate, called my_paypal_cert.p12, was created in that same directory. You need this file later, so copy it to a location where you can find it.
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Cheap Web Hosting services