Delete 'csr-rsa.sh'

This commit is contained in:
2020-08-04 19:43:39 -04:00
parent f0f2b10cca
commit e7d5c6adb5

View File

@@ -1,37 +0,0 @@
#!/bin/bash
if [ $# -eq 0 ]; then
read -p 'Please enter Hostnames, no domain, to generate CSRs for: ' HOSTNAMES
elif [ $# -gt 0 ]; then
HOSTNAMES=$@
fi
DOMAIN="home.johnhgaunt.com"
for i in $HOSTNAMES; do
openssl req -new -sha512 -nodes -out $i.$DOMAIN.csr -newkey rsa:4096 -keyout $i.$DOMAIN.key -config <(
cat <<-EOF
[req]
default_bits = 4096
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=$i.$DOMAIN
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = $i.$DOMAIN
DNS.2 = $i
EOF
)
done