ebarnouflant
ebarnouflant copied to clipboard
Generate CSR non-interactively using a config file
# cat wildcard.conf
[ req ]
prompt = no
distinguished_name = dn
req_extensions = req_ext
[ dn ]
CN = *.domain.com
emailAddress = [email protected]
O = MyOrg
OU = MyOrgUnit
L = Location
ST = State
C = FR
[ req_ext ]
subjectAltName = DNS: *.domain.com, DNS: domain.com
openssl req -nodes -newkey rsa:2048 -sha256 -config wildcard.conf -keyout wildcard.key -out wildcard.csr -utf8