Skip to content

Instantly share code, notes, and snippets.

@telf3
telf3 / README.md
Last active July 24, 2025 14:57
certbot-dns-cloudflare on asustor NAS

This will configure an Asustor NAS to use a Let's Encrypt certificate without exposing it to the internet.
To achieve this, we use Certbot with the DNS-01 challenge via Cloudflare.

I'm placing my configuration in /volume1/system. Feel free to change this to whatever location you prefer.

  1. Set up Cloudflare credentials.
mkdir /volume1/system/letsencrypt
touch /volume1/system/letsencrypt/cloudflare.ini
chown root:root /volume1/system/letsencrypt
@telf3
telf3 / README.md
Last active July 24, 2025 14:59
certbot-dns-cloudflare on DSM 7

The goal is to configure Synology NAS to use letsencrypt certificate without exposing it to the internet.
To achieve this we use certbot with DNS-01 challenge to Cloudflare.

  1. Run install.sh to install pip and certbot. You may need to run this again after DSM upgrades.

  2. Setup cloudflare secret.

mkdir /volume1/system/letsencrypt
touch /volume1/system/letsencrypt/cloudflare.ini