Skip to content

Instantly share code, notes, and snippets.

@amit-g
Created March 28, 2023 20:22
Show Gist options
  • Save amit-g/515c7235ba4af2a2e156eda07ae01afe to your computer and use it in GitHub Desktop.
Save amit-g/515c7235ba4af2a2e156eda07ae01afe to your computer and use it in GitHub Desktop.
& '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