Last active
September 18, 2019 14:37
-
-
Save Narven/0d7240a027bbe6f3b25363268144b624 to your computer and use it in GitHub Desktop.
Generate CRT, KEY, PEM for localhost domains (HTTPS)
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 -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout localhost.key -out localhost.pem -subj "/C=US/CN=Example-Root-CA" | |
openssl x509 -outform pem -in localhost.pem -out localhost.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment