Last active
August 4, 2017 18:28
-
-
Save muratgozel/9104cad67353bee7b59a60ef385a71ad to your computer and use it in GitHub Desktop.
Generates private key - public certificate pair in a single command.
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
# Remove -nodes if you want to protect the cert with a password. | |
openssl req -x509 -newkey rsa:4096 -keyout sample-key.pem -out sample-cert.pem -days 365 -subj '/CN=sample.com/O=Sample Corp./C=US' -nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment