Skip to content

Instantly share code, notes, and snippets.

@PierBover
Created January 27, 2022 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierBover/0a785bc92dc2d9cc6e7bb2da05a11d74 to your computer and use it in GitHub Desktop.
Save PierBover/0a785bc92dc2d9cc6e7bb2da05a11d74 to your computer and use it in GitHub Desktop.
Create certs for HTTP in localhost
openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -keyout localhost-key.pem -out localhost-cert.pem
mkcert -install
mkcert -key-file localhost-key.pem -cert-file localhost-cert.pem localhost 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment