Sunday, November 5, 2017

Creating CSR with multiple Domains



Create an Conf File with following details : openssl.conf
===================
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req

[req_distinguished_name]
countryName = Country Name (2 letter code)
countryName_default = GB
stateOrProvinceName             = State or Province Name (full name)
stateOrProvinceName_default     = Lancashire
localityName = Locality Name (eg, city)
localityName_default = Altham
organizationalUnitName = Organizational Unit Name (eg, section)
commonName = Common Name (eg, YOUR name)
commonName_max = 64
emailAddress = Email Address
emailAddress_max = 40

[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = abc.com
DNS.2 = xyz.abc.com
DNS.3 = *.abc.com
DNS.4 = *.xyz.abc.com
===================

Create the Private 
  openssl genrsa -out acb.com.key 2048


Create the CSR with Help of conf file created. 

 openssl req -new -sha256 -key abc.com.key -out abc.com.csr -config openssl.conf 


No comments:

Post a Comment