OpenSSL CSR with SAN

From KlavoWiki
Revision as of 09:01, 7 May 2020 by David (Sọ̀rọ̀ | contribs) (Created page with "<pre> openssl req -out sslcert.csr -newkey rsa:2048 -nodes -keyout private.key -config /opt/ssl.conf </pre> <pre> vi /opt/ssl.conf </pre> <pre> [ req ] default_bits =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
openssl req -out sslcert.csr -newkey rsa:2048 -nodes -keyout private.key -config /opt/ssl.conf
vi /opt/ssl.conf
[ req ]
default_bits       = 2048
distinguished_name = req_distinguished_name
req_extensions     = req_ext
prompt             = no

[ req_distinguished_name ]
countryName          = AU
stateOrProvinceName  = Queensland
localityName         = Ipswich
organizationName     = Organization Name (eg, company)
commonName           = email.testforme.com

[ req_ext ]
subjectAltName = @alt_names

[alt_names]
DNS.1 = mail.testforme.com
DNS.2 = mail.klaverstyn.com
DNS.3 = mail.klaverstyn.com.au
DNS.4 = home.klaverstyn.com.au
DNS.5 = mail.homne.klaverstyn.com.au