1
0
Fork 0

Remove the LE certificate before importing into the Mikrotik

Or it won't get imported at all.
This commit is contained in:
Luca Beltrame 2021-07-05 06:48:17 +02:00
parent 608d399434
commit 4dec403d73
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -34,6 +34,7 @@ scp "/etc/letsencrypt/${LE_DOMAIN}/privkey.pem" "${MIKROTIK_HOST}":
scp "/etc/letsencrypt/${LE_DOMAIN}/fullchain.pem" "${MIKROTIK_HOST}":
ssh mikrotik -T <<EOF
/certificate remove fullchain.pem_0
/certificate import file-name=fullchain.pem passphrase=""
/certificate import file-name=privkey.pem passphrase=""
/file remove fullchain.pem