ebarnouflant icon indicating copy to clipboard operation
ebarnouflant copied to clipboard

Generate CSR non-interactively using a config file

Open crohr opened this issue 3 years ago • 0 comments

# 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

crohr avatar Nov 21 '22 09:11 crohr