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

service reload / HUP should reload ssl certificate [no downtime] #162

Closed
phaidros7 opened this issue Jun 5, 2017 · 5 comments
Closed

service reload / HUP should reload ssl certificate [no downtime] #162

phaidros7 opened this issue Jun 5, 2017 · 5 comments

Comments

@phaidros7
Copy link

letsencrypt regular certificate renew leads to the neccessity to reload the ssl certificate. atm this is only possible with restart.

is there any chance to let icecast reread a new ssl certificate and use it, without disconnecting actual listeners? only new connections should use the new certificate then tho.

please consider this a question, where I do not know enough about SSL, to determine if that asked is technically feasable at all :_)

@phaidros7
Copy link
Author

well done. kh5 actually works that way!

thanks. :)

@griffon56
Copy link

What is the command to renew the https certificate without downtime ?
On my server I need to relaunch every three months, which is the validity of Let's encrypt certificate.

@rustyhodge
Copy link

rustyhodge commented Apr 10, 2024

A kill -HUP (PID) should reload the certificate info without a restart, but I seem to have 6 different versions installed and only Icecast 2.4.0-kh15-20211016231513 reloads the certificate when I HUP it.

Icecast 2.4.0-kh15-20211016212453 no
Icecast 2.4.0-kh15-20211016231513 yes
Icecast 2.4.0-kh15-20211017002051 no
Icecast 2.4.0-kh15-20211017003935 no
Icecast 2.4.0-kh15-20211017010144 no
Icecast 2.4.0-kh15-20211017011012 no

Is the -20211017011012 part at the end just the build time? That then makes this even more confusing. They are running on different Ubuntu versions, but the first two are the same OS version, one reloads with the -HUP the other doesn't.

I'll experiment with installing the latest version to see what's up. Might have to do with an OpenSSL version as well?

@rustyhodge
Copy link

rustyhodge commented Apr 11, 2024

Nevermind.
(Correction, I was checking the installed certs not the actual SSL being served by Icecast)

Original:
Update: when I checked things just now, all the new certificates had been reloaded. I guess this is some cache / thread related behavior.

In the future I'll do a test and see just how long it takes to update the certificate on the various machines.

@rustyhodge
Copy link

I turned up error log levels now, as I'm seeing this on the machines that didn't update as expected we=hen -HUP'd:

WARN connection/get_ssl_certificate Invalid cert file /etc/icecast2/certs/somawild.crt (system lib)

So this sheds some light with 2.4.0-kh15. But the certificate is good. Stopping and restarting the Icecast process the certificate loads fine. But doing a -HUP gets that warning when the certificate is changed.

I'm replying here hoping to help some folks out (even tho this issue is closed).

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

3 participants