Question about SSL Certificate Hot-Reloading in Hysteria 2 #1552
Replies: 1 comment
|
Yes for the local The server config intentionally uses: hyConfig.TLSConfig.GetCertificate = certLoader.GetCertificateand the comment says this is so users can update the cert without restarting the server. So replacing |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi community,
I'm using Hysteria 2 and updating my SSL certificates (acme.sh) every few days. I noticed in the source code (app/cmd/server.go) that hyConfig.TLSConfig.GetCertificate = certLoader.GetCertificate is used, which seems to support dynamic loading.
I just want to confirm: If my external script replaces the fullchain.cer and private.key files on the disk, will Hysteria 2 automatically read the new certificate for new connections without needing a systemd restart?
Thanks!
All reactions