Created
March 31, 2021 14:03
-
-
Save cguldogan/0b54750483bddfa8ce141c2810a723c3 to your computer and use it in GitHub Desktop.
OpenSSL Self Signed Certificate as base64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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