
Obtaining API Credentials
Encrypting Your Certificate Into PKCS12 Format
48
4. Under Option 2, click View API Signature.
5. Save the values for API Username and API Password, and click Done.
6. Click Download Certificate and save the file.
7. Rename the file to something familiar, such as paypal_live_cert.pem. It is not
necessary to keep the .txt file extension. Be sure to remember where you save the file.
After completing this task:
If you use the PayPal SDK for Java, the PayPal SDK for .NET, or the PayPal SDK for
Classic ASP, you must encrypt your certificate in PCKS12 format.
If you use the PayPal SDK for .NET or Classic ASP, you must take additional steps to
import the certificate.
Encrypting Your Certificate Into PKCS12 Format
PayPal SDKs for Java, .NET, and Classic ASP require the additional task of encrypting your
certificate into PKCS12 format. Perform this task for both your Sandbox certificate and your
live certificate.
NOTE:This task is not required if you are using the PayPal SDK for PHP.
The certificate you download from PayPal is in PEM format. It contains both your public
certificate and the associated private key. Although the PEM certificate is not human readable,
the file is not encrypted.
The steps in this task require you to use the OpenSSL encryption tool. On Unix, this tool is
typically installed for you. On Windows, you typically must download OpenSSL yourself; in
this case, accept the defaults when you install OpenSSL and add OpenSSL to the path.
NOTE:In Windows, the Path is a System environment variable, which is accessible from the
Advanced tab when you right-click on your My Computer icon and view its
properties. Do not confuse the System variables path with with the User variables
path. Add OpenSSL to the System variables path.
To encrypt your certificate into PKCS12 format:
1. Use OpenSSL to create the PKCS12-format certificate from the downloaded PEM-format
certificate.
openssl pkcs12 -export -in download.txt -inkey download.txt -out
certificate.p12
2. At the prompt, enter an Export Password for the certificate.
3. Save your Export Password.
Comentários a estes Manuais