Skip to content

Instantly share code, notes, and snippets.

@snobu
Created December 28, 2017 12:38
Show Gist options
  • Select an option

  • Save snobu/dc5e6ac9d70d4cfbe91b4678727e33b6 to your computer and use it in GitHub Desktop.

Select an option

Save snobu/dc5e6ac9d70d4cfbe91b4678727e33b6 to your computer and use it in GitHub Desktop.
openssl generate self signed cert
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
openssl pkcs12 -inkey key.pem -in certificate.pem -export -out certificate.pfx
#dump cert info:
openssl x509 -text -noout -in certificate.pem
openssl x509 -serial -fingerprint -noout -in certificate.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment