Last active
December 23, 2023 05:17
-
-
Save levid0s/171c1d1e0f272916a3ccecbaa3c4ae2c to your computer and use it in GitHub Desktop.
OpenWRT Let's Encrypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '[email protected]' | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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