Skip to content

Instantly share code, notes, and snippets.

@Narven
Last active September 18, 2019 14:37
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 Narven/0d7240a027bbe6f3b25363268144b624 to your computer and use it in GitHub Desktop.
Save Narven/0d7240a027bbe6f3b25363268144b624 to your computer and use it in GitHub Desktop.
Generate CRT, KEY, PEM for localhost domains (HTTPS)
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