Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created December 27, 2020 06:17
Show Gist options
  • Save percybolmer/c70cdb52d9968dd4fa6d3bca731c0d39 to your computer and use it in GitHub Desktop.
Save percybolmer/c70cdb52d9968dd4fa6d3bca731c0d39 to your computer and use it in GitHub Desktop.
A configuration to generate a cert for localhost
[req]
default_bits = 4096
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[dn]
C = US
ST = NJ
O = Test, Inc.
CN = localhost
[req_ext]
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
IP.1 = ::1
IP.2 = 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment