Files
homelab-scripts/csr.ps1
2020-08-04 14:59:25 -04:00

24 lines
445 B
PowerShell

openssl req -new -sha512 -nodes -newkey ec:$(openssl ecparam -name secp384r1) -keyout C:\users\crp3844\temp\smith.key -out C:\users\crp3844\temp\smith.csr -config `
"[req]
prompt = no
default_md = sha512
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C=US
ST=PA
L=Pittsburgh
O=Gaunt
OU=Gaunt
emailAddress=admin@johnhgaunt.com
CN=smith.com
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = smith.com
DNS.2 = smith
EOF
"