Skip to content

Instantly share code, notes, and snippets.

@iaalm
Last active September 26, 2023 09:09
Show Gist options
  • Save iaalm/c1fc04e576323c2b70828152efa8a62a to your computer and use it in GitHub Desktop.
Save iaalm/c1fc04e576323c2b70828152efa8a62a to your computer and use it in GitHub Desktop.
Generate self-signed certificate for localhost
openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 3650 -keyout output/localhost.pem -out output/localhost.cer -subj "/CN=localhost" -addext "subjectAltName = DNS:localhost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment