9 references to Certificates
Microsoft.AspNetCore.HttpOverrides.Tests (9)
CertificateForwardingTest.cs (9)
59
Assert.Equal(context.Connection.ClientCertificate,
Certificates
.SelfSignedValidWithNoEku);
71
c.Request.Headers["X-Client-Cert"] = Convert.ToBase64String(
Certificates
.SelfSignedValidWithNoEku.RawData);
92
context.Connection.ClientCertificate =
Certificates
.SelfSignedNotYetValid;
98
Assert.Equal(context.Connection.ClientCertificate,
Certificates
.SelfSignedValidWithNoEku);
110
c.Request.Headers["X-Client-Cert"] = Convert.ToBase64String(
Certificates
.SelfSignedValidWithNoEku.RawData);
136
Assert.Equal(context.Connection.ClientCertificate,
Certificates
.SelfSignedValidWithNoEku);
148
c.Request.Headers["X-ARR-ClientCert"] = Convert.ToBase64String(
Certificates
.SelfSignedValidWithNoEku.RawData);
186
c.Request.Headers["not-the-right-header"] = Convert.ToBase64String(
Certificates
.SelfSignedValidWithNoEku.RawData);
224
c.Request.Headers["X-Client-Cert"] = "OOPS" + Convert.ToBase64String(
Certificates
.SelfSignedValidWithNoEku.RawData);