Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * - 1 votes

Paypal IPN -how to generate your encryption certs


  • You cannot reply to this topic
2 replies to this topic

#1 Hoheria

  • Community Member
  • 22 posts
  • Real Name:Martin Hughes-Jones

Posted 20 December 2007, 08:56

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

#2 stah

  • Community Member
  • 4 posts
  • Real Name:stah

Posted 09 October 2011, 19:27

View PostHoheria, on 20 December 2007, 08:56, said:

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

#3 mlavanish

  • Community Member
  • 36 posts
  • Real Name:Matt

Posted 19 January 2012, 21:41

Thanks! This helped me a ton. The fix for the cfg. file in the second post was good as well.