This commit is contained in:
2024-02-28 10:33:15 +08:00
commit 492c03bfcf
27 changed files with 813 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
eval $(egrep -v '^#' .env | xargs)
echo "
[req]
default_bits = 2048
distinguished_name = dn
prompt = no
[dn]
C=\"US\"
ST=\"Florida\"
OU=\"Service\"
emailAddress=\"admin@${HOST}\"
CN=\"${HOST}\"
[req_ext]
subjectAltName = @alt_names
[alt_names]
DNS.0 = ${HOST}
DNS.1 = *.${HOST}
DNS.2 = *.docker.${HOST}
" > certs/csr.conf