Generating your certificates using the wizard
If you have visited the page for generating Encrypted Payment Buttons, then you already know that you need to generate your PKCS12 certificate file and public certificate file (*.pem) in order to generate Encrypted Payment buttons. If you are using ASP.NET MVC framework, then, you will find a stand-alone portable certificate generation tool available in the same zip file that you have downloaded.

But if you are using Web Form, then, you will find the Certificate Generator tool built into all PayPal buttons and you can invoke that tool from the design time smart tag wizard by following the provided steps:
- From the smart tag of a BuyNow button, check the option 'Generate Encrypted Button'. Once you checked that option, a link will be shown named 'Settings and Automation Wizard for EWP'.




Some facts about OpenSSL:
At this point, you should know that the certificates will be generated using OpenSSL command line utility but you won't 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 OpenSSL 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.
If you do not have the installer for OpenSSL, no need to worry, just provide a folder path where you want the wizard download OpenSSL for you. Once you click 'Yes', the wizard will show the download progress window and let you wait for the OpenSSL file to be downloaded as shown in the following screenshot:

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.
If your computer has these DLL files: C:\Windows\system32\ssleay32.dll, C:\Windows\system32\libeay32.dll, C:\Windows\system32\libssl32.dll then these files will need to be overwritten by OpenSSL installer, otherwise OpenSSL will not be able to generate certificates for you. So, when the wizard calls the installer, if the installer finds these DLL files in your system, it will show you a 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 'Yes', the wizard will ask you the folder path for backing up the files. As shown in the following screenshot:

We apologize for the fact that our control's certificate generator does not work with the latest version of the OpenSSL. Rather it works with OpenSSL version 0.9.8 which is very stable. We have hosted that version on our server. When you run the certificate generation wizard, the wizard actually downloads that specific version of OpenSSL file from our server. You can directly download that old version from our server, using this link: http://spicelogic.com/PublicFiles/productPrerequisites/Win32OpenSSL-0_9_8d.exe