Compare commits
No commits in common. "2d5ae60d8f480508408f924a1360c5b1f165a3bc" and "9983b9f626fedc22b7f8e7a7a3218cfad9427ef9" have entirely different histories.
2d5ae60d8f
...
9983b9f626
@ -148,33 +148,11 @@ EOF
|
|||||||
export CAROOT=/etc/letsencrypt/local/
|
export CAROOT=/etc/letsencrypt/local/
|
||||||
/root/mkcert/mkcert -install # CA dans /etc/letsencrypt/local/
|
/root/mkcert/mkcert -install # CA dans /etc/letsencrypt/local/
|
||||||
cd "${CAROOT}"
|
cd "${CAROOT}"
|
||||||
cat > "${CAROOT}/kaz.sns.cnf" <<EOF
|
/root/mkcert/mkcert "*.kaz.sns" # cert et clé dans /etc/letsencrypt/local/
|
||||||
[ req ]
|
|
||||||
prompt = no
|
|
||||||
distinguished_name = dn
|
|
||||||
req_extensions = req_ext
|
|
||||||
|
|
||||||
[ dn ]
|
mkdir -p /etc/letsencrypt/live/kaz.sns/
|
||||||
CN = *.kaz.sns
|
|
||||||
emailAddress = admin@kaz.sns
|
|
||||||
O = KAZ
|
|
||||||
OU = Dev
|
|
||||||
L = Vannes
|
|
||||||
ST = France
|
|
||||||
C = FR
|
|
||||||
|
|
||||||
[ req_ext ]
|
|
||||||
subjectAltName = @alt_names
|
|
||||||
|
|
||||||
[alt_names]
|
|
||||||
DNS.0 = *.kaz.sns
|
|
||||||
EOF
|
|
||||||
openssl req -new -newkey rsa:2048 -sha256 -nodes -keyout kaz.sns.key -out kaz.sns.csr -config kaz.sns.cnf
|
|
||||||
/root/mkcert/mkcert -csr "${CAROOT}/kaz.sns.csr" # cert et clé dans /etc/letsencrypt/local/
|
|
||||||
|
|
||||||
mkdir -p /etc/letsencrypt/live/kaz.sns/
|
|
||||||
ln -s ../../local/_wildcard.kaz.sns.pem /etc/letsencrypt/live/kaz.sns/fullchain.pem
|
ln -s ../../local/_wildcard.kaz.sns.pem /etc/letsencrypt/live/kaz.sns/fullchain.pem
|
||||||
ln -s ../../local/kaz.sns.key /etc/letsencrypt/live/kaz.sns/privkey.pem
|
ln -s ../../local/_wildcard.kaz.sns-key.pem /etc/letsencrypt/live/kaz.sns/privkey.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cache docker registry
|
# Cache docker registry
|
||||||
|
Loading…
Reference in New Issue
Block a user