Replies: 2 comments 1 reply
-
That would work, but 5.0 has a new way to do this via reloadable config. (Docs still in progress) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Tratcher:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm trying to change the SSL certificate at runtime in Kestrel.
Without restarting the process, that is.
I was reading this issue on how to change the SSL certificate on Kestrel
aspnet/KestrelHttpServer#2103
And it just so happens that I was reading about how to host multiple domains on the same kestrel server with SNI.
I mean in the code below, it takes the certs from a dictionary and the certificate-store, but I could easily read them from a pfx/pem file and set a filesystemwatcher on each certificate, and if the SSL-certificate changes, update the dictionary.
I would probably need to change dictionary to concurrentdicionary, though.
I was wondering:
Would that be the correct way to reload SSL-certificates on Kestrel at runtime ?
Or is there an easier way ?
Beta Was this translation helpful? Give feedback.
All reactions