You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update channel-credentials.md
Adding workaround for PEM loaded client certificates on Windows.
* Fix markdown errors
* Update channel-credentials.md
Making it clear when the workaround should be applied.
* Update docs/architecture/grpc-for-wcf-developers/channel-credentials.md
Fixing after code review.
Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
* Update docs/architecture/grpc-for-wcf-developers/channel-credentials.md
Co-authored-by: David Pine <david.pine@microsoft.com>
* Update docs/architecture/grpc-for-wcf-developers/channel-credentials.md
Co-authored-by: David Pine <david.pine@microsoft.com>
* Update docs/architecture/grpc-for-wcf-developers/channel-credentials.md
Co-authored-by: David Pine <david.pine@microsoft.com>
* Intro paras; formatting.
* Update channel-credentials.md
Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
Co-authored-by: David Pine <david.pine@microsoft.com>
Copy file name to clipboardExpand all lines: docs/architecture/grpc-for-wcf-developers/channel-credentials.md
+48-1Lines changed: 48 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Channel credentials - gRPC for WCF Developers
3
3
description: How to implement and use gRPC channel credentials in ASP.NET Core 3.0.
4
-
ms.date: 12/15/2020
4
+
ms.date: 06/28/2021
5
5
---
6
6
7
7
# Channel credentials
@@ -92,6 +92,10 @@ public class Startup
92
92
93
93
With the `Grpc.Net.Client` package, you configure certificates on an <xref:System.Net.Http.HttpClient> instance that is provided to the `GrpcChannel` used for the connection.
94
94
95
+
### Load a client certificate from a .PFX file
96
+
97
+
A certificate can be loaded from a _.pfx_ file.
98
+
95
99
```csharp
96
100
classProgram
97
101
{
@@ -117,6 +121,49 @@ class Program
117
121
}
118
122
```
119
123
124
+
### Load a client certificate from certificate and private key .PEM files
125
+
126
+
A certificate can be loaded from a certificate and private key _.pem_ file.
127
+
128
+
```csharp
129
+
classProgram
130
+
{
131
+
staticasyncTaskMain(string[] args)
132
+
{
133
+
// Assume path to a certificate and private key .pem files are passed from command line
> Due to an internal Windows bug as [documented here](https://github.com/dotnet/runtime/issues/23749#issuecomment-388231655), you'll need to apply the following a workaround if the certificate is created from certificate and private key PEM data.
0 commit comments