User Tools

Site Tools


openssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
openssl [2014/05/22 21:12] skipidaropenssl [2020/12/27 20:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +===== Openssl =====
  
 +=== Generating a private public key pair ===
 +<code>
 +openssl genrsa -out d:\privatekey.pem 1024
 +openssl req -new -x509 -key d:\privatekey.pem -out d:\publickey.cer -days 7000
 +openssl pkcs12 -export -out d:\public_privatekey.pfx -inkey d:\privatekey.pem -in d:\publickey.cer
 +openssl req -key d:\privatekey.pem -out d:\privatekey.csr -new
 +openssl x509 -req -days 7000 -in d:\privatekey.csr -signkey d:\privatekey.pem -out d:\publickeycert.pem
 +</code>
 +
 +
 +Amazon AWS requires a **signed** public key. THe toolkit mostly uses **.pem** files.
 +
 +  * Step 1: generates a private key
 +  * Step 2: creates a X509 certificate (.cer file) containing your public key which you upload when registering your private application (or upgrading to a partner application).
 +  * Step 3: Export your x509 certificate and private key to a pfx file. If your chosen wrapper library uses the .pem file to sign requests then this step is not required.
 +  * Step 4: convert the private key to a .csr  file
 +  * Step 5: convert the private key in the .csr format to a .pem file and **signing** it with the private key. \\ Signing is required for AWS to accept the public key