Created
March 28, 2023 20:22
-
-
Save amit-g/515c7235ba4af2a2e156eda07ae01afe to your computer and use it in GitHub Desktop.
This file contains 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
& 'C:\Program Files\OpenSSL\bin\openssl.exe' req -x509 -nodes -keyout C:\Certs\self-signed-key.pem -out C:\Certs\self-signed-cert.pem -subj '/CN=localhost' | |
# New-Item -ItemType SymbolicLink -Path "key.pem" -Target "C:\Certs\self-signed-key.pem" | |
# New-Item -ItemType SymbolicLink -Path "cert.pem" -Target "C:\Certs\self-signed-cert.pem" | |
npx http-server --ssl --cert C:\Certs\self-signed-cert.pem --key C:\Certs\self-signed-key.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment