Skip to content

Let's Encrypt Script for MikroTik devices with SSTP cert changing

Notifications You must be signed in to change notification settings

Nicarex/LetsEncrypt_OSScript-SSTP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Mikrotik LetsEncrypt_OSScript

This script automates the generation and renew of certificate provide by Let's Encrypt on Mikrotik devices.

Requirements:

  • RouterOS v.7
  • Public IP on WAN Interface or port 80 TCP forward

Create a new script named LetsEncrypt_OSScript with read and write policy, copy the code from LetsEncrypt_OSScript.txt file and define a scheduler batch (in this example every day at 02:00 AM):

/system scheduler add interval=1d name=LetsEncrypt_OSScript_schedule on-event=LetsEncrypt_OSScript policy=read,write start-time=02:00:00

If you don't want use the CloudIP hostname ( xxx.sn.mynetname.net) you can uncomment the 4th line and set the FQDN

Be carefull on Let's Encrypt Rate Limits in your tests https://letsencrypt.org/docs/rate-limits/

About

Let's Encrypt Script for MikroTik devices with SSTP cert changing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published