Feature request: Improve gRPC client Certificate handling
See original GitHub issueIt would help, if it was possible to use a pfx file with password, or a thumbprint from the client. This would make it easy to setup HTTPS with the client for different deployment types.
something like this:
example 1:
cert = new X509Certificate2(Path.Combine(_environment.ContentRootPath, "sts_dev_cert.pfx"), "1234");
example 2:
using (X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine))
{
store.Open(OpenFlags.ReadOnly);
var certs = store.Certificates.Find(X509FindType.FindByThumbprint, certificateThumbprint, false);
cert = certs[0];
store.Close();
}
example 3:
var vaultConfigSection = Configuration.GetSection("Vault");
var keyVaultService = new KeyVaultCertificateService(vaultConfigSection["Url"], vaultConfigSection["ClientId"], vaultConfigSection["ClientSecret"]);
cert = keyVaultService.GetCertificateFromKeyVault(vaultConfigSection["CertificateName"]);
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
In GRPC, how to selectively require Client Certificate for a ...
In TLS mutual authentication, I am aware that ClientAuth(io.grpc.netty.shaded.io.netty.handler.ssl.ClientAuth to be precise) has three modes ...
Read more >Performance Best Practices
A user guide of both general and language-specific best practices to improve performance.
Read more >Practical guide to securing gRPC connections with Go and ...
Contrary to popular belief, you don't need to manually provide the Server certificate to your gRPC client in order to encrypt the connection....
Read more >Channel credentials - gRPC for WCF Developers
How to implement and use gRPC channel credentials in ASP.NET Core 3.0. ... The standard form of channel credentials uses client certificate ......
Read more >Consuming a gRPC Service
gRPC clients can be injected in your application code. Consuming gRPC services requires the gRPC classes to be generated. Place your proto files...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Raise Grpc.Core related improvements at https://github.com/grpc/grpc
The new HttpClient-based client is great, but it’s only an option if you’re using .NET Core 3.0 on the client side. Improving certificate handling for the Grpc.Core-based client as described above would be a great help when working with a target framework that doesn’t support .NET Standard 2.1.