-
-
Save khadorkin/25aafc6039dd12a4f6d899948fe08500 to your computer and use it in GitHub Desktop.
generate ssl keys for 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 -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem | |
# only enter the Common Name: your ip address or your domain name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
generate your ssl keys in the folder, then you can just use it with
http-server
hs -S # enable ssl mode