Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal IPN -how to generate your encryption certs


Hoheria

Recommended Posts

Having spent hours trying to get my head around the impenetrable openssl software for public and private key generation I stumbled across a fairly straightforward way to do this - for "windows" users at least. Here is what you need to do:

 

Go to:

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

 

download and install Win32 OpenSSL v0.9.8g Light

 

this contains all you need to generate your private key and your public certificate. Install it in the openssl directory as prompted by the install procedure.

 

using windows explorer go to openssl\bin and double click on the openssl.exe file - this will open a dos window and you are already in the correct directory to execute the dos commands. You can drag a shortcut to the desktop if you wish.

 

From here type into the dos prompt:

genrsa -out my-prvkey.pem 1024

then "return"

this will generate your private key file with the name my-prvkey.pem in that same directory.

 

To generate the public certificate is a little more complicated because the software needs to be told where to find the openssl.cnf file which it needs to run. Type in at the dos prompt:

 

req -config c:\openssl\bin\openssl.cnf -new -key my-prvkey.pem -x509 -days 365 -out my-pubcert.pem

carriage return

 

this will generate a one year cert - you will be prompted to fill in various details as you proceed.

 

If you want a 10 year cert type in at the dos prompt:

req -config c:\openssl\bin\openssl.cnf -new -key my-prvkey.pem -x509 -days 3650 -out my-pubcert.pem

carriage return

 

go to your paypal account

under profile you will see "encrypted payment settings" and upload your public certificate for storage by paypal. You will need the number for thre paypal ipn module.

 

good luck with the rest of it.

 

Martin

Link to comment
Share on other sites

  • 3 years later...

Having spent hours trying to get my head around the impenetrable openssl software for public and private key generation I stumbled across a fairly straightforward way to do this - for "windows" users at least. Here is what you need to do:

 

Go to:

http://www.slproweb....n32OpenSSL.html

 

download and install Win32 OpenSSL v0.9.8g Light

 

this contains all you need to generate your private key and your public certificate. Install it in the openssl directory as prompted by the install procedure.

 

using windows explorer go to openssl\bin and double click on the openssl.exe file - this will open a dos window and you are already in the correct directory to execute the dos commands. You can drag a shortcut to the desktop if you wish.

 

From here type into the dos prompt:

genrsa -out my-prvkey.pem 1024

then "return"

this will generate your private key file with the name my-prvkey.pem in that same directory.

 

To generate the public certificate is a little more complicated because the software needs to be told where to find the openssl.cnf file which it needs to run. Type in at the dos prompt:

 

req -config c:\openssl\bin\openssl.cnf -new -key my-prvkey.pem -x509 -days 365 -out my-pubcert.pem

carriage return

 

this will generate a one year cert - you will be prompted to fill in various details as you proceed.

 

If you want a 10 year cert type in at the dos prompt:

req -config c:\openssl\bin\openssl.cnf -new -key my-prvkey.pem -x509 -days 3650 -out my-pubcert.pem

carriage return

 

go to your paypal account

under profile you will see "encrypted payment settings" and upload your public certificate for storage by paypal. You will need the number for thre paypal ipn module.

 

good luck with the rest of it.

 

Martin

Thanks! but may be

 

req -config c:\openssl\bin\openssl.cfg -new -key my-prvkey.pem -x509 -days 365 -out my-pubcert.pem

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...