hyperium / hyper-tls

Apache License 2.0
189 stars 96 forks source link

Automatic client/server certificate reloading. #75

Closed sergeykhegay closed 4 years ago

sergeykhegay commented 4 years ago

Hi, what would be the best approach to automatically reload certificates on a running server/client? The use case is for environments where certs are refreshed pretty frequently -- once a day.

For example, in Golang, when configuring TLS is as possible to provide callbacks which are called when certificate is needed. See GetCertificate, GetClientCertificate https://golang.org/pkg/crypto/tls/#Config.

sergeykhegay commented 4 years ago

I was able to do this with hyper-rustls.

jacob-pro commented 2 years ago

@sergeykhegay please could you explain how you did this with rustls?