Renewing Letsencrypt Certificate for Free BSD (nagios.apoyar)

From Apoyar Wiki
Revision as of 13:58, 31 August 2024 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Renewing Letsencrypt Certificate for Free BSD (nagios.apoyar)


Login to nagios.apoyar


• cd /usr/local/etc/apache24

• vi httpd.conf

go to end of the file (Shift+G)

Here will get one line “To renew certbot comment out the above and enable the below”

So, enable the certbot and disable the nagios


Then restart apache

• apachectl restart


Open port 80 on firewall



Login to juniper - http://juniper.apoyar/login


- Username – root

- Password - ap0yar


Go to

- Security

- Policy

- Apply policy

Look for nagios here and then edit

Under application

Search for http

Select junos_http and click on add

And then commit the changes from top menu


Go back to nagios.apoyar


Run dry run command

• certbot renew --dry-run

NOTE: if you get an error related to apache certbot plugin then install it with below command

    " pkg install py311-certbot-apache " ( this command version is python3.11 )

if all Ok, then remove dry run and run again

• certbot renew

After renewal, go back and edit httpd.conf


• cd /usr/local/etc/apache24

• vi httpd.conf

go to end of the file (Shift+G)

now, disable the certbot and enable the nagios


Then restart apache

• apachectl restart

check apache port • socket -14