|
Creating Your Public Certificates : *.pem & *.p12
As you have decided to
generate Encrypted buttons,
you need to have 4 credentials:
-
PayPal public certificate file
(paypal_cert_pem.txt).
- Your PKCS12 certificate (*.p12).
- Your PKCS12 certificate Password.
- A certificate ID received from PayPal when you
uploaded your public certificate
(*.pem) to PayPal.
Now, PayPal public certifcate file can be downloaded from PayPal website by logging
to your account. Please
click here
to visit the tutorial page for getting your PayPal public certificate.
Now, the following step by step instruction shows how to get your rest of the 3 credentails using the Smart Tag built in GUI wizard of this control.
- When you click the Encrypted Button Generation Wizard link from the smart tag, the
Encryptd Button generation wizard will be shown up. In that dialog, click the "Generate
Certificates Now" button as shown in the following screen shot:

- Once this button is clicked, the Certificate Generation window will appear. Please
fill up at least your Company Name, Your Name, Your Email Address. Please note:
The Company name, Your name must match with the Company name and your name that
you have in your PayPal account. Otherwise, PayPal will refuse to accept the encrypted
button payment with the error "The merchant does not have business
or premier account.".

- Then, provide a file path for saving your generated public certifcate file (*.pem)
which will be
uploaded to PayPal
for getting your Certificate ID. Also provide the file path for saving the generated
PKCS12 file (*.p12). Please note: You should save these files within the App_Data
folder of your web application. Because these folder are secured and the confidential
files kept in this folder can not be downloaded by any client browser. Once you
provide the file paths, the information will be passed back to the first window
where credentials are asked. Finally provide a password for protecting your PKCS12
file. This information will also be passed back to the first window.
- Click "Generate Certificates Now" button.
Ok, now, at this point, you should know that, the certificates will be generated
using OpenSSL command line utility but you wont have to worry about this at all.
If your computer already has this software installed, it will find out and call
the OpenSSL internally and generate the certificates for you without letting you
learning any commands for this command line utility. If this wizard cannot find
the OpenSLL installed, it will show you the following option box:
If you have this software already downloaded but did not install yet, you can provide
the path of the installer and choose the first option and click Ok. In that case,
the wizard will start installing the software without requiring your interruption.
Once OpenSSL is installed, the wizard will generate the certificates using the help
of OpenSSL without requiring you learning any commands of the OpenSSL.
If you do not have the installer for OpenSSL, no need to worry, just provide a folder
where you want the wizard download OpenSSL for you. Once you click Ok, the wizard
will show the download progress window and let you wait for the OpenSSL file to
be downloaded as shown in the following screen shot:
OpenSSL is only about 6MB and it downloads very fast. Once it is downloaded, the
wizard already knows the location of the installer, so it will start installing
the software without requiring your interruption. Once OpenSSL is installed, the
wizard will generate the certificates using the help of OpenSSL without requiring
you learning any commands of the OpenSSL.
Please note: there are 3 dlls (C:\Windows\system32\ssleay32.dll,
C:\Windows\system32\libeay32.dll, C:\Windows\system32\libssl32.dll) that needs to be overwritten by OpenSSL
installer, otherwise OpenSSL will not be able to generate certificates for you.
So, when the wizard calls the installer, it will show you an warning dialog box with
the message of overwriting those System dll files. However, this wizard will give
you an option to back up those files before they are overwritten. The warning dialog
of the wizard will ask you if you want to back up those system dll files or not.
If you choose ok, then wizard will ask you the folder path for backing up the files.
As shown in the following screen shot:
Still Confused ?
If you are still confused, please check the sample application that comes with
the setup.exe file you have downloaded from our website. Also please do not
hesitate to ask us as many questions as you want from our
Help Desk
.
|