Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to restart httpd and freepbx after certificate update #16

Closed
alenas opened this issue Mar 17, 2021 · 6 comments
Closed

Need to restart httpd and freepbx after certificate update #16

alenas opened this issue Mar 17, 2021 · 6 comments

Comments

@alenas
Copy link
Contributor

alenas commented Mar 17, 2021

I see that FreePBX does not restart any service after let's encrypt certificate update.
I get this message in FreePBX dashboard:
"Some SSL/TLS Certificates have been automatically updated. You may need to ensure all services have the correctly update certificate by restarting PBX services"

Apache is definitely still using old certificate.
Need a cron job to restart httpd and asterisk/freepbx (and maybe nodejs?)
I will test today if it is enough to do fwconsole restart

@ugoviti
Copy link
Owner

ugoviti commented Mar 17, 2021

Interesting... how do you tested the expired certificates renewal if default duration is 90 days?

I think is necessary to deploy a cron with openssl check, better way:

  1. check the expiry of the living apache certificate
  2. check the expiry of the saved certificate into freepbx folder
  3. If apache certificate expiry date is different (near to expire) of the filesystem certificate, then restart apache

Let's me know if I must look into...

Thank you for the support.

Kind regards

@alenas
Copy link
Contributor Author

alenas commented Mar 17, 2021

Just by accident on one of my servers FreePBX renewed certificate today. And I saw dashboard notification and then checked browser certificate.

@ugoviti
Copy link
Owner

ugoviti commented Mar 18, 2021

Hi Alenas,

pushed right now c36791f with a major rework of Apache config and LE generation/renew

Implemented a simple daily cronjob: /etc/cron.daily/freepbx-le-renew

Building right now.... can you test when ready?

docker pull izdock/izpbx-asterisk:dev-18.2.2-258

or

docker pull izdock/izpbx-asterisk:dev-18.2.2-c36791f

Kind regards

@alenas
Copy link
Contributor Author

alenas commented Mar 18, 2021

Cool. I will test now

@ugoviti
Copy link
Owner

ugoviti commented Mar 18, 2021

Please wait :) near 30 minutes left to complete the CI/CD build step :)

monitor https://hub.docker.com/repository/docker/izdock/izpbx-asterisk/tags?page=1&ordering=last_updated when build is finished :)

@ugoviti
Copy link
Owner

ugoviti commented Mar 19, 2021

Promoted yesterday as 18.15.5 release

Let's me know if you are experiencing problems.

Now I must rework the configuration for using custom signed ssl certificates with freepbx.

@ugoviti ugoviti closed this as completed Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants