Remove the LE certificate before importing into the Mikrotik
Or it won't get imported at all.
This commit is contained in:
parent
608d399434
commit
4dec403d73
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue