Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------ Move Cert to nvram before executing (if currently in jffs) ------
- https2nvram
- ------ Reboot Router from GUI as instructed ------
- ------ Commands Below should erase any existing certs ------
- nvram set https_crt_save=0
- nvram unset https_crt_file
- nvram commit
- service restart_httpd
- ------ Check to be certain that cert.pem and key.pem are gone ------
- ls -l /etc
- ------ Checks below should show 0 and [blank] ------
- nvram get https_crt_save
- nvram get https_crt_file
- |==================================================================================================================|
- ------ Copy privkey.pem and fullchain.pem from letsencrypt/live/xxxxxxxxxxxx.com ------
- ------ to the Router Settings folder and run the commands below: ------
- nvram set https_crt_save=1
- cp -f /mnt/USB1/settings/privkey.pem /etc/key.pem
- cp -f /mnt/USB1/settings/fullchain.pem /etc/cert.pem
- |==================================================================================================================|
- >>>>>>>>>>>>>>>>>> USE EITHER ABOVE SEQUENCE (Router) OR BELOW (AccessPoint) <<<<<<<<<<<<<<<<<<
- |==================================================================================================================|
- ------ Create key.pem and cert.pem using privkey.pem and fullchain.pem from letsencrypt/live/xxxxxxxxxxxx.com ------
- ------ by pasting their contents using the commands below: ------
- cat >/jffs/key.pem
- cat >/jffs/cert.pem
- nvram set https_crt_save=1
- cp -f /jffs/key.pem /etc/key.pem
- cp -f /jffs/cert.pem /etc/cert.pem
- |==================================================================================================================|
- chmod 666 /etc/key.pem
- chmod 666 /etc/cert.pem
- nvram commit
- service restart_httpd
- ------ Once SSL connection is verified, reboot router ------
- reboot
- ------ Move Cert back to jffs (from nvram) to save space on router ------
- https2jffs
- ------ Reboot Router from GUI as instructed ------
- ------ If it's pulling default ASUS Cert > Create symlink to cert in jffs ------
- ln -sf /jffs/ssl /jffs/https
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement