1
0
Fork 0

[le_lan] Make sure we log off to update certs on mikrotik

Or somehow the whole thing does not complete successfully.
This commit is contained in:
Luca Beltrame 2021-10-23 09:29:53 +02:00
parent f73bc401ff
commit da5c1e6eaa
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -39,6 +39,10 @@ ssh mikrotik -T <<EOF
/certificate import file-name=privkey.pem passphrase=""
/file remove fullchain.pem
/file remove privkey.pem
EOF
# Do it twice or somehow the installation of the certificates goes wonky
ssh mikrotik -T <<EOF
/ip service set www-ssl certificate=fullchain.pem_0
/ip service set api-ssl certificate=fullchain.pem_0
EOF