Skip to content

Instantly share code, notes, and snippets.

@weaponsforge
Last active April 7, 2020 00:42
Show Gist options
  • Save weaponsforge/ce881621566b2e491d96bf843a8fc441 to your computer and use it in GitHub Desktop.
Save weaponsforge/ce881621566b2e491d96bf843a8fc441 to your computer and use it in GitHub Desktop.
Create "secure" ssl certificates for localhost using openssl
// Requires req.cnf (see req.cnf gist)
// Proceed to update windows "hosts" file and certmgr.msc to enable "secure" ssl for localhost using the generated certficiate
openssl req -nodes -newkey rsa:2048 -days 365 -x509 -keyout server.key -out server.out -config req.cnf -sha256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment