diff --git a/How-to-run-on-OpenWRT.md b/How-to-run-on-OpenWRT.md index f2c22cf..0303514 100644 --- a/How-to-run-on-OpenWRT.md +++ b/How-to-run-on-OpenWRT.md @@ -45,6 +45,7 @@ mkdir ~/.https curl https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh > acme.sh chmod a+x "acme.sh" ./acme.sh --install +cd /root/.acme.sh DOMAIN=my.router.net ## this domain must actually point to your router ./acme.sh --issue -d $DOMAIN -w /www ``` @@ -52,8 +53,8 @@ DOMAIN=my.router.net ## this domain must actually point to your router Now if the certificate issue was successful we'll tell the web server to use our new certificate: ``` -uci set uhttpd.main.key "$(pwd)/$DOMAIN/$DOMAIN.key" -uci set uhttpd.main.cert "$(pwd)/$DOMAIN/$DOMAIN.cert" +uci set uhttpd.main.key="$(pwd)/$DOMAIN/$DOMAIN.key" +uci set uhttpd.main.cert="$(pwd)/$DOMAIN/$DOMAIN.cert" uci commit uhttpd /etc/init.d/uhttpd restart ```