NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

chrhei's avatar
chrhei
Luminary
May 25, 2016
Solved

Letsencrypt/certbot experiments with ReadyNAS OS 6.5.0 on RN202

See also: LINK Install letsencrypt/certbot on Readynas OS 6.5.0 (Debian Wheezy): Docs and inspiration from: certbot netgear_581268 netgear_592613 # apt-get install nano (or any other edit...
  • chrhei's avatar
    May 26, 2016

    And below you'll what I've done to get the certificates easily updated!

     

    # cd /opt/letsencrypt
    # nano my_renew_hook


    Add the following lines to the script:

    ===== snip =====
    #!/bin/sh
    rm /etc/frontview/apache/apache2.pem
    cat /etc/letsencrypt/live/fqdn.yourdomain.com/privkey.pem >> /etc/frontview/apache/apache2.pem
    cat /etc/letsencrypt/live/fqdn.yourdomain.com/cert.pem >> /etc/frontview/apache/apache2.pem
    cp /etc/letsencrypt/live/fqdn.yourdomain.com/chain.pem /etc/frontview/apache/chain.pem
    ===== snap =====

     

    Save the script and make it executeable:
    # chmod 755 my_renew_hook

     

    To renew your certificates run (also possible via a cron-job):
    # /opt/letsencrypt/certbot-auto renew --standalone --pre-hook "service apache2 stop" --post-hook "service apache2 start" --renew-hook "/opt/letsencrypt/my_renew_hook"

     

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More