Created
January 27, 2022 17:57
-
-
Save PierBover/0a785bc92dc2d9cc6e7bb2da05a11d74 to your computer and use it in GitHub Desktop.
Create certs for HTTP in localhost
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
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