Skip to content

Instantly share code, notes, and snippets.

@khadorkin
Forked from huozhi/ssl.sh
Created February 12, 2018 14:46
Show Gist options
  • Save khadorkin/25aafc6039dd12a4f6d899948fe08500 to your computer and use it in GitHub Desktop.
Save khadorkin/25aafc6039dd12a4f6d899948fe08500 to your computer and use it in GitHub Desktop.
generate ssl keys for localhost
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
@khadorkin
Copy link
Author

generate your ssl keys in the folder, then you can just use it with http-server

hs -S # enable ssl mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment