Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gvsrini/cc44f1a395a4a3349c739bc8eac84fd2 to your computer and use it in GitHub Desktop.
Save gvsrini/cc44f1a395a4a3349c739bc8eac84fd2 to your computer and use it in GitHub Desktop.
Generate Public Private key and corresponding pfx
483 openssl genrsa -out privatekey.pem 1024
484 openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
485 ls -l *pem
486 openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
487 ls *.cer
488 openssl pkcs12 -export -out public_privatekey.pfx -inkey privatekey.pem -in publickey.cer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment