Skip to content

Instantly share code, notes, and snippets.

@yejun
Last active January 30, 2017 02:36
Show Gist options
  • Save yejun/1740e84c304886c827b91181163658b3 to your computer and use it in GitHub Desktop.
Save yejun/1740e84c304886c827b91181163658b3 to your computer and use it in GitHub Desktop.
Enable lets' encrypt ssl on ubnt edge router
  • Install acme.sh

    curl https://get.acme.sh | sh
  • Issue certificate

    .acme.sh/acme.sh --issue --dns -d ubnt.mydomain
  • Setup your dns text record

    .acme.sh/acme.sh --renew -d ubnt.mydomain
    .acme.sh/acme.sh --install-cert -d ubnt.homelocal.iphash.net \
      --capath /config/auth/ca.cer --reloadcmd "cat \$CERT_KEY_PATH \$CERT_PATH > /config/auth/server.pem \
      && sudo killall -SIGHUP lighttpd"
  • Config gui to use new certifcate

    configure
    set service gui ca-file /config/auth/ca.cer
    set service gui cert-file /config/auth/server.pem
    commit
    save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment