[ req ]
default_bits = 2048
default_keyfile = key.pem
encrypt_key = no
default_md = sha256
prompt=no
distinguished_name=server
[ server ]
C = US
ST = New York
L = Gotham
O = Gotham
OU = WWW-testing
CN = example.com
[ v3_server ]
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
basicConstraints = CA:false
subjectAltName=@altname
[ altname ]
DNS.1=example.com
DNS.2=localhost
IP.1=127.0.0.1
IP.2=::1