/mikrotikSSL

Script to install SSL in multiple Mikrotik routers.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Mikrotik RouterOS

mickrotikSSL

How to install SSL certificate in multiple routers

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.

Project Recommendation

  • 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:

  1. You must include your list of IP-hosts in the "routers" file.
  2. Check that the directory paths are identical to those of the script.
  3. Change your domain name in $DOMAIN variable.

Author: Alex Mendes

https://www.linkedin.com/in/mendesalex/

References: