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

How to reload ssl ctx without restart grpc-server? #2804

Open
xujiandream opened this issue Jul 29, 2024 · 1 comment
Open

How to reload ssl ctx without restart grpc-server? #2804

xujiandream opened this issue Jul 29, 2024 · 1 comment

Comments

@xujiandream
Copy link

Need a way to reload ssl ctx without restart grpc-server

@murgatroid99
Copy link
Member

There is now experimental support for this feature in grpc-js, starting in version 1.12.0: you can create an experimental.FileWatcherCertificateProvider to watch certificate files, and then use it on the server with the experimental.createCertificateProviderServerCredentials. Then, when you change the files, gRPC will automatically update the certificates used by the server.

Again, this API is experimental, so it may change in future minor releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants