Linux

Create CSR with SAN

Create a file named myconf.cnf

countryName         = Country Name (2 letter code)
countryName_default     = GR
countryName_min         = 2
countryName_max         = 2
stateOrProvinceName     = State or Province Name (full name)
stateOrProvinceName_default = MyProvinceName
localityName            = Locality Name (eg, city)
localityName_default    = MyCityName
0.organizationName      = Organization Name (eg, company)
0.organizationName_default  = MyCompany
organizationalUnitName      = Organizational Unit Name (eg, section)
organizationalUnitName_default  = MySection
commonName          = Common Name (eg, YOUR name)
commonName_default  = subdomain.example.com
commonName_max      = 64
emailAddress            = Email Address
emailAddress_default    = info@example.com
emailAddress_max        = 40
[ req_ext ]
subjectAltName = @alt_names
[alt_names]
DNS.1   = ns1.example.com
DNS.2   = ns2.example.com

Generate csr

openssl req -new -key subdomain.example.com.key -out subdomain.example.com.req -config myconf.cnf

Related