coturn / coturn

coturn TURN server project
Other
11.49k stars 2.03k forks source link

how to renew SSL certificate in coturn docker container. #1589

Open NirmalSenthil opened 1 month ago

NirmalSenthil commented 1 month ago

Hi, i have question for how to renew ssl certificate in coturn docker container. can i do automaticaly with certbot. anyone have any experience with this. give me a guide for it.

eakraly commented 1 month ago

Hi @NirmalSenthil One way to do it:

  1. Store certificates on a volume
  2. Mount it to the coturn container
  3. Update the certificates on the volume (from other container I guess)
  4. Send SIGUSR2 signal to the coturn container so that it reloads certificates (this is not a documented feature but it works. Also, not implemented in container running scripts so you will have to patch them)
NirmalSenthil commented 1 month ago

Hi @eakraly , Thank you for your response. i appreciate your answer. i have a another doubt that i have multiple coturn docker container in different severs. in that case how to i manage that certificate renewal. can i use central volume to mange a certificate and renewal. then also can i use single ssl certificate to multiple coturn docker container.

eakraly commented 1 month ago

This is up to you and your infrastructure. I did that in the past in k8s and it worked well. YMMW however your deployment is done but nothing really prevents you from doing this.