1
0
Fork 0

Import also the private key

This commit is contained in:
Luca Beltrame 2021-07-05 06:41:57 +02:00
parent de8864ce83
commit 608d399434
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -10,6 +10,11 @@ MIKROTIK_HOST="mikrotik"
systemctl reload nginx
systemctl restart sssd
# Re-add the private key in LDAP *IMPORTANT*
dsctl "${LDAP_SHORTNAME}" tls import-server-key-cert /etc/letsencrypt/live/"${LE_DOMAIN}"/fullchain.pem \
/etc/letsencrypt/live/"${LE_DOMAIN}"/privkey.pem
# Re-import the certificate in the LDAP store
dsconf -v -D "cn=Directory Manager" "${LDAP_SHORTNAME}" security certificate add \