1 override of ClientCertificate
Microsoft.AspNetCore.Http (1)
Internal\DefaultConnectionInfo.cs (1)
80public override X509Certificate2? ClientCertificate
2 writes to ClientCertificate
Microsoft.AspNetCore.Authentication.Test (1)
CertificateTests.cs (1)
806context.Connection.ClientCertificate = clientCertificate;
Microsoft.AspNetCore.HttpOverrides.Tests (1)
CertificateForwardingTest.cs (1)
92context.Connection.ClientCertificate = Certificates.SelfSignedNotYetValid;
43 references to ClientCertificate
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
33await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine);
AzureAppServicesSample (1)
Startup.cs (1)
44await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine);
DefaultBuilder.SampleApp (1)
Startup.cs (1)
34await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + "\r\n");
Http3SampleApp (1)
Startup.cs (1)
26await context.Response.WriteAsync($"Hello World! {context.Request.Protocol} {context.Connection.ClientCertificate?.Subject}");
IISSample (1)
Startup.cs (1)
58await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine);
InMemory.FunctionalTests (19)
HttpsConnectionMiddlewareTests.cs (19)
515Assert.NotNull(context.Connection.ClientCertificate); 551Assert.Null(context.Connection.ClientCertificate); 556Assert.Null(context.Connection.ClientCertificate); 595Assert.Null(context.Connection.ClientCertificate); 600Assert.NotNull(context.Connection.ClientCertificate); 636Assert.Null(context.Connection.ClientCertificate); 679Assert.Null(context.Connection.ClientCertificate); 684Assert.Null(context.Connection.ClientCertificate); 727Assert.Null(context.Connection.ClientCertificate); 732Assert.NotNull(context.Connection.ClientCertificate); 769Assert.Null(context.Connection.ClientCertificate); 774Assert.Null(context.Connection.ClientCertificate); 896Assert.Null(context.Connection.ClientCertificate); 901Assert.Null(context.Connection.ClientCertificate); 1032Assert.Null(context.Connection.ClientCertificate); 1041Assert.NotNull(context.Connection.ClientCertificate); 1079Assert.Null(context.Connection.ClientCertificate); 1285Assert.NotNull(context.Connection.ClientCertificate); 1286Assert.NotNull(context.Connection.ClientCertificate.PublicKey);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
144var clientCert = context.Connection.ClientCertificate;
Interop.FunctionalTests (6)
Http3\Http3TlsTests.cs (4)
82var hasCert = context.Connection.ClientCertificate != null; 124var hasCert = context.Connection.ClientCertificate != null; 169var hasCert = context.Connection.ClientCertificate != null; 223var hasCert = context.Connection.ClientCertificate != null;
HttpClientHttp2InteropTests.cs (2)
1620Assert.NotNull(context.Connection.ClientCertificate); 1665Assert.Null(context.Connection.ClientCertificate);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonTranscodingServerCallContext.cs (1)
188var clientCertificate = HttpContext.Connection.ClientCertificate;
Microsoft.AspNetCore.HttpOverrides.Tests (10)
CertificateForwardingTest.cs (10)
53Assert.Null(context.Connection.ClientCertificate); 59Assert.Equal(context.Connection.ClientCertificate, Certificates.SelfSignedValidWithNoEku); 91Assert.Null(context.Connection.ClientCertificate); 98Assert.Equal(context.Connection.ClientCertificate, Certificates.SelfSignedValidWithNoEku); 130Assert.Null(context.Connection.ClientCertificate); 136Assert.Equal(context.Connection.ClientCertificate, Certificates.SelfSignedValidWithNoEku); 168Assert.Null(context.Connection.ClientCertificate); 174Assert.Null(context.Connection.ClientCertificate); 206Assert.Null(context.Connection.ClientCertificate); 212Assert.Null(context.Connection.ClientCertificate);
NativeIISSample (1)
Startup.cs (1)
52await context.Response.WriteAsync("ClientCert: " + context.Connection.ClientCertificate + Environment.NewLine);