Skip to content

Instantly share code, notes, and snippets.

@levid0s
Last active December 23, 2023 05:17
Show Gist options
  • Save levid0s/171c1d1e0f272916a3ccecbaa3c4ae2c to your computer and use it in GitHub Desktop.
Save levid0s/171c1d1e0f272916a3ccecbaa3c4ae2c to your computer and use it in GitHub Desktop.
OpenWRT Let's Encrypt
root@router:~# opkg list-installed | grep acme
acme-acmesh - 3.0.7-1
acme-acmesh-dnsapi - 3.0.7-1
acme-common - 1.0.3
# vim /etc/config/acme
config acme
option state_dir '/etc/acme'
option account_email 'xxxx@mail.com'
option debug '1'
config cert 'example'
option keylength '2048'
option update_uhttpd '1'
option webroot '/www'
option dns 'dns_he'
list credentials 'HE_Username="xxxxx"'
list credentials 'HE_Password="xxxxx"'
option use_staging '1'
option enabled '0'
list domains 'apu.lan.wrtpoona.in'
# /etc/init.d/acme start
# https://forum.openwrt.org/t/letsencrypt-acme-certs-via-dns-api-wont-renew-work-with-uhttpd/44360
# vim /etc/config/uhttpd
config uhttpd 'main'
option cert '/etc/acme/apu.lan.wrtpoona.in/apu.lan.wrtpoona.in.cer'
option key '/etc/acme/apu.lan.wrtpoona.in/apu.lan.wrtpoona.in.key'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment