github.com/qiuhoude/go-web@v0.0.0-20220223060959-ab545e78f20d/prepare/23_proto_actor/remotessl/cert/localhost.conf (about)

     1  [ req ]
     2  default_bits        = 4096
     3  default_keyfile     = localhost.key
     4  distinguished_name  = subject
     5  req_extensions      = extensions
     6  x509_extensions     = extensions
     7  string_mask         = utf8only
     8  
     9  [ subject ]
    10  countryName         = Country Name (2 letter code)
    11  countryName_default = US
    12  
    13  stateOrProvinceName         = State or Province Name (full name)
    14  stateOrProvinceName_default = California
    15  
    16  localityName         = Locality Name (eg, city)
    17  localityName_default = San Franscisco
    18  
    19  organizationName         = Organization Name (eg, company)
    20  organizationName_default = Example, LLC
    21  
    22  commonName         = Common Name (e.g. server FQDN or YOUR name)
    23  commonName_default = localhost
    24  
    25  emailAddress         = Email Address
    26  emailAddress_default = root@localhost
    27  
    28  [ extensions ]
    29  
    30  subjectKeyIdentifier   = hash
    31  authorityKeyIdentifier = keyid,issuer
    32  
    33  basicConstraints = CA:FALSE
    34  keyUsage         = nonRepudiation, digitalSignature, keyEncipherment
    35  extendedKeyUsage = serverAuth
    36  subjectAltName   = @alternate_names
    37  nsComment        = "OpenSSL Generated Certificate"
    38  
    39  [ alternate_names ]
    40  
    41  DNS.1 = localhost
    42  IP.2  = 127.0.0.1
    43  IP.3  = ::1