Skip to content

Instantly share code, notes, and snippets.

@phutidus
phutidus / setup-letsencrypt.sh
Last active December 28, 2023 08:29
Setup Let's Encrypt for GUI on EdgeRouter X using DNS-01 challenge
#!/bin/bash
# script original path: /config/scripts/setup-letsencrypt.sh
# Setup Let's Encrypt for GUI (works for me)
# tested on EdgeRouter X (v1.9.1), logged in as root
# only need to be run once after reset or firmware upgrade
# I chose acme.sh (https://github.com/Neilpang/acme.sh) to handle the certificate issuing process
# using DNS-01 challenge to verify my domain
DOMAIN=a.domain.under.your.control