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

How to reload coturn when ssl certificates are renewed? #1446

Open
priyanjitdey94 opened this issue Mar 6, 2024 · 1 comment
Open

How to reload coturn when ssl certificates are renewed? #1446

priyanjitdey94 opened this issue Mar 6, 2024 · 1 comment

Comments

@priyanjitdey94
Copy link

[Help Needed] [Discussion]

I am using certbot for creating SSL certificates which renews every 3months.

  • How to make coturn auto-reload when certbot has auto-renewed the SSL certificates?
  • How to make coturn auto-reload new SSL certificates from terminal without breaking existing connections and downtime?

Please provide any relevant docs/articles around it. Also would like to know how other users are handling this use-case since this is very common.

@JeanPluzo
Copy link

Hi,
if you're using certbot in a script you could just add systemctl restart coturn.service at the end of said script. From my experience you can restart the service even if you have connections, since a client will build a connection again once the old one is dropped. The restart takes only a fraction of a second.
If you're using coturn as a docker container then it could get more complicated, but is still doable since you "only" restart a docker container (docker container restart coturn), or, to be safe kill the container and create a new one. This will load the new certs.
If you really don't want any downtime you should do these steps when there's little or no traffic (nightime) using crontab.
Hope this helps.
Regards,
J.

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