Last active
February 3, 2019 22:34
-
-
Save nikanos/b678474558f5a688bcc8ff3e790b5199 to your computer and use it in GitHub Desktop.
openssl self-signed certificate commands
This file contains hidden or 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
#generate a private key without a pass phrase and with default length | |
openssl genrsa -out private.key | |
#generate a private key without a pass phrase and with 4096-bit length | |
openssl genrsa -out private.key 4096 | |
#generate a private key with a pass phrase and with default length | |
openssl genrsa -des3 -out private.key | |
#generate a self-signed certificate using private.key as key and set validity to 365 days | |
openssl req -new -x509 -key private.key -out certificate.pem -days 365 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment