Skip to content

Commit 765db5d

Browse files
authored
Update Certifier client cert (#676)
1 parent 098893e commit 765db5d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
-3.12 KB
Binary file not shown.

examples/Certifier/Server/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public void ConfigureServices(IServiceCollection services)
3535
services.AddAuthentication(CertificateAuthenticationDefaults.AuthenticationScheme)
3636
.AddCertificate(options =>
3737
{
38-
// Not recommended in production environments. The example is using a test certificate
38+
// Not recommended in production environments. The example is using a self-signed test certificate.
3939
options.RevocationMode = X509RevocationMode.NoCheck;
40+
options.AllowedCertificateTypes = CertificateTypes.All;
4041
});
4142
}
4243

examples/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ The reflector shows how to host the [gRPC Server Reflection Protocol](https://gi
7373

7474
The certifier shows how to configure the client and the server to use a [TLS client certificate](https://blogs.msdn.microsoft.com/kaushal/2015/05/27/client-certificate-authentication-part-1/) with a gRPC call. The server is configured to require a client certificate using [ASP.NET Core client certificate authentication](https://docs.microsoft.com/en-us/aspnet/core/security/authentication/certauth).
7575

76+
> **NOTE:** client.pfx is a self-signed certificate. When running the client you may get an error that the certificate is not trusted: `The certificate chain was issued by an authority that is not trusted`. [Add the certificate](https://www.thesslstore.com/knowledgebase/ssl-install/how-to-import-intermediate-root-certificates-using-mmc/) to your computer's trusted root cert store to fix this error. Don't use this certificate in production environments.
77+
7678
##### Scenarios:
7779

7880
* Client certificate authentication
@@ -133,4 +135,4 @@ The progressor shows how to use server streaming to notify the caller about prog
133135
##### Scenarios:
134136

135137
* Server streaming
136-
* Using [`Progress<T>`](https://docs.microsoft.com/en-us/dotnet/api/system.progress-1) to notify progress on the client
138+
* Using [`Progress<T>`](https://docs.microsoft.com/en-us/dotnet/api/system.progress-1) to notify progress on the client

0 commit comments

Comments
 (0)