Skip to content

Instantly share code, notes, and snippets.

@cguldogan
Created March 31, 2021 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cguldogan/0b54750483bddfa8ce141c2810a723c3 to your computer and use it in GitHub Desktop.
Save cguldogan/0b54750483bddfa8ce141c2810a723c3 to your computer and use it in GitHub Desktop.
OpenSSL Self Signed Certificate as base64
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 825 -out certificate.pem
openssl x509 -text -noout -in certificate.pem
openssl pkcs12 -inkey key.pem -in certificate.pem -export -out certificate.p12
openssl pkcs12 -in certificate.p12 -noout -info
openssl base64 -in certificate.p12 -A -out certificate.base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment