Skip to content

Instantly share code, notes, and snippets.

@stweil
stweil / fritzbox-cert-update.sh
Last active September 8, 2021 19:57 — forked from wikrie/fritzbox-cert-update.sh
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/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.