Due to the need to install ssl certificates on multiple mikrotik routeros, I had to find out a way to use letsencrypt and based on the articles at albertsola.pro (HOWTO: Letsencrypt SSL certificate in Mikrotik) and gitpel/letsencrypt-routeros (Let's Encrypt RouterOS / Mikrotik) I have created a model script for installing SSL certificates on multiple Mikrotik routers.
- Linux Server with letsencrypt installed
- Project folder (script files content): /opt/letsencrypt-routeros
- Certname used: cert.pem(crt), privkey.pem(key)
- Default SSH keypairs name used: id_dsa, id_dsa.pub
Note:
- You must include your list of IP-hosts in the "routers" file.
- Check that the directory paths are identical to those of the script.
- Change your domain name in $DOMAIN variable.