This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## This little Gist copies the Letsencrypt certificate from a Linux machine | |
## (e.g. Raspberry PI or Synology NAS) to the router (Fritzbox). | |
## It is useful to be able to speak to the router over DDNS without any certificate issue in the browser. | |
## thanks to https://gist.github.com/mahowi for the perfect idea | |
## put it in /etc/letsencrypt/renewal-hooks/post so it gets run after every renewal. | |
## since Fritz OS 7.25 it is needed to select a Username, from a security point of view | |
## it is always a good idea to have a non default user name. And as normaly a Fritz Box | |
## is connected to the Internet, the preferred method should be WITH Username. |