github.com/godaddy-x/freego@v1.0.156/rpcx/cert/TLS.md (about)

     1  [ req ]
     2  
     3  default_bits       = 2048
     4  
     5  distinguished_name = req_distinguished_name
     6  
     7  req_extensions     = SAN
     8  
     9  [ req_distinguished_name ]
    10  
    11  countryName                 = Country Name (2 letter code)
    12  
    13  countryName_default         = CN
    14  
    15  stateOrProvinceName         = State or Province Name (full name)
    16  
    17  stateOrProvinceName_default = ShangHai
    18  
    19  localityName                = Locality Name (eg, city)
    20  
    21  localityName_default        = ShangHai
    22  
    23  organizationName            = Organization Name (eg, company)
    24  
    25  organizationName_default    = China
    26  
    27  commonName                  = Common Name (e.g. server FQDN or YOUR name)
    28  
    29  commonName_max              = 64
    30  
    31  commonName_default          = localhost
    32  
    33  [ SAN ]
    34  
    35  subjectAltName = DNS:localhost,DNS:*.test.com