[req] distinguished_name=dn x509_extensions=ext [ dn ] CN=testserver.com [ ext ] subjectAltName = @alt_names [alt_names] DNS.1 = testserver.com DNS.2 = second.testserver.com DNS.3 = localhost IP.1 = 127.0.0.1 IP.2 = ::1