1 write to SelfSignedValidWithNoEku
Microsoft.AspNetCore.Authentication.Test (1)
src\Shared\test\Certificates\Certificates.cs (1)
39
SelfSignedValidWithNoEku
= MakeCert(
27 references to SelfSignedValidWithNoEku
Microsoft.AspNetCore.Authentication.Test (27)
CertificateTests.cs (27)
42
Assert.True(Certificates.
SelfSignedValidWithNoEku
.IsSelfSigned());
70
Certificates.
SelfSignedValidWithNoEku
);
101
Certificates.
SelfSignedValidWithNoEku
);
395
client.DefaultRequestHeaders.Add("X-Client-Cert", Convert.ToBase64String(Certificates.
SelfSignedValidWithNoEku
.RawData));
412
client.DefaultRequestHeaders.Add("X-Client-Cert", "OOPS" + Convert.ToBase64String(Certificates.
SelfSignedValidWithNoEku
.RawData));
431
client.DefaultRequestHeaders.Add("X-ARR-ClientCert", Convert.ToBase64String(Certificates.
SelfSignedValidWithNoEku
.RawData));
449
client.DefaultRequestHeaders.Add("random-Weird-header", Convert.ToBase64String(Certificates.
SelfSignedValidWithNoEku
.RawData));
462
Certificates.
SelfSignedValidWithNoEku
);
482
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.Issuer, actual.First().Value);
486
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.Thumbprint, actual.First().Value);
489
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.SubjectName.Name))
495
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.SubjectName.Name, actual.First().Value);
499
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.SerialNumber))
505
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.SerialNumber, actual.First().Value);
509
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.DnsName, false)))
515
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.DnsName, false), actual.First().Value);
519
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.EmailName, false)))
525
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.EmailName, false), actual.First().Value);
529
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.SimpleName, false)))
535
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.SimpleName, false), actual.First().Value);
539
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.UpnName, false)))
545
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.UpnName, false), actual.First().Value);
549
if (!string.IsNullOrEmpty(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.UrlName, false)))
555
Assert.Equal(Certificates.
SelfSignedValidWithNoEku
.GetNameInfo(X509NameType.UrlName, false), actual.First().Value);
593
Certificates.
SelfSignedValidWithNoEku
, null, null, false, "", cache);
663
Certificates.
SelfSignedValidWithNoEku
);
720
Certificates.
SelfSignedValidWithNoEku
, null, null, false, "", cache, timeProvider);