gin
gin copied to clipboard
Expose an interface to reload TLS cert
- With issues:
- Use the search tool before opening a new issue.
- Please provide source code and commit sha if you found a bug.
- Review existing issues and provide feedback or react to them.
Description
Consider the following code to start the HTTPS server:
route := gin.New()
route.RunTLS(addr, tlsCert, tlsKey)
Is there any way to reload the TLS cert? I have looked through the doc and searched the internet but failed to find the answer.
Is it possible to have something like this to reload the cert when cert is changed
route.reloadTLS(tlsCert, tlsKey)
I can contribute if it is reasonable and not hard to implement
Expectations
Actual result
Environment
- go version:
- gin version (or commit ref): v1.9.1
- operating system: