Advertisement
Guest User

Untitled

a guest
Feb 5th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. ------ Move Cert to nvram before executing (if currently in jffs) ------
  2. https2nvram
  3.  
  4. ------ Reboot Router from GUI as instructed ------
  5. ------ Commands Below should erase any existing certs ------
  6. nvram set https_crt_save=0
  7. nvram unset https_crt_file
  8. nvram commit
  9. service restart_httpd
  10.  
  11. ------ Check to be certain that cert.pem and key.pem are gone ------
  12. ls -l /etc
  13.  
  14. ------ Checks below should show 0 and [blank] ------
  15. nvram get https_crt_save
  16. nvram get https_crt_file
  17.  
  18.  
  19. |==================================================================================================================|
  20. ------ Copy privkey.pem and fullchain.pem from letsencrypt/live/xxxxxxxxxxxx.com ------
  21. ------ to the Router Settings folder and run the commands below: ------
  22. nvram set https_crt_save=1
  23.  
  24. cp -f /mnt/USB1/settings/privkey.pem /etc/key.pem
  25. cp -f /mnt/USB1/settings/fullchain.pem /etc/cert.pem
  26. |==================================================================================================================|
  27.  
  28. >>>>>>>>>>>>>>>>>> USE EITHER ABOVE SEQUENCE (Router) OR BELOW (AccessPoint) <<<<<<<<<<<<<<<<<<
  29.  
  30. |==================================================================================================================|
  31. ------ Create key.pem and cert.pem using privkey.pem and fullchain.pem from letsencrypt/live/xxxxxxxxxxxx.com ------
  32. ------ by pasting their contents using the commands below: ------
  33. cat >/jffs/key.pem
  34. cat >/jffs/cert.pem
  35.  
  36. nvram set https_crt_save=1
  37.  
  38. cp -f /jffs/key.pem /etc/key.pem
  39. cp -f /jffs/cert.pem /etc/cert.pem
  40. |==================================================================================================================|
  41.  
  42.  
  43. chmod 666 /etc/key.pem
  44. chmod 666 /etc/cert.pem
  45. nvram commit
  46. service restart_httpd
  47.  
  48. ------ Once SSL connection is verified, reboot router ------
  49. reboot
  50.  
  51. ------ Move Cert back to jffs (from nvram) to save space on router ------
  52. https2jffs
  53.  
  54. ------ Reboot Router from GUI as instructed ------
  55. ------ If it's pulling default ASUS Cert > Create symlink to cert in jffs ------
  56. ln -sf /jffs/ssl /jffs/https
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement