Skip to content

Instantly share code, notes, and snippets.

@telf3
telf3 / README.md
Last active February 23, 2025 00:55
certbot-dns-cloudflare on asustor NAS

This will configure an Asustor NAS to use letsencrypt certificate without exposing it to the internet.
To achieve this we use certbot with DNS-01 challenge to Cloudflare.

  1. Setup cloudflare secret.
mkdir /volume1/system/letsencrypt
touch /volume1/system/letsencrypt/cloudflare.ini
chown root:root /volume1/system/letsencrypt
chmod 700 /volume1/system/letsencrypt
chmod 600 /volume1/system/letsencrypt/cloudflare.ini
@telf3
telf3 / README.md
Last active March 17, 2024 16:27
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