50 references to Certificates
Microsoft.AspNetCore.Authentication.Test (50)
CertificateTests.cs (50)
42Assert.True(Certificates.SelfSignedValidWithNoEku.IsSelfSigned());
54Certificates.SelfSignedValidWithClientEku);
70Certificates.SelfSignedValidWithNoEku);
85Certificates.SelfSignedValidWithClientEku);
101Certificates.SelfSignedValidWithNoEku);
117Certificates.SelfSignedValidWithServerEku);
134Certificates.SelfSignedValidWithServerEku);
151Certificates.SelfSignedValidWithServerEku);
169Certificates.SelfSignedExpired);
186Certificates.SelfSignedExpired);
204Certificates.SelfSignedNotYetValid);
221Certificates.SelfSignedNotYetValid);
237Certificates.SelfSignedValidWithServerEku);
254Certificates.SelfSignedValidWithServerEku);
282}, Certificates.SignedClient);
305}, Certificates.SignedClient);
320CustomTrustStore = new X509Certificate2Collection() { Certificates.SignedSecondaryRoot },
323}, Certificates.SignedClient);
337CustomTrustStore = new X509Certificate2Collection() { Certificates.SelfSignedPrimaryRoot, Certificates.SignedSecondaryRoot },
340}, Certificates.SignedClient);
355CustomTrustStore = new X509Certificate2Collection() { Certificates.SelfSignedPrimaryRoot, },
356AdditionalChainCertificates = new X509Certificate2Collection() { Certificates.SignedSecondaryRoot },
358}, Certificates.SignedClient);
373CustomTrustStore = new X509Certificate2Collection() { Certificates.SelfSignedPrimaryRoot, },
375}, Certificates.SignedClient);
395client.DefaultRequestHeaders.Add("X-Client-Cert", Convert.ToBase64String(Certificates.SelfSignedValidWithNoEku.RawData));
412client.DefaultRequestHeaders.Add("X-Client-Cert", "OOPS" + Convert.ToBase64String(Certificates.SelfSignedValidWithNoEku.RawData));
431client.DefaultRequestHeaders.Add("X-ARR-ClientCert", Convert.ToBase64String(Certificates.SelfSignedValidWithNoEku.RawData));
449client.DefaultRequestHeaders.Add("random-Weird-header", Convert.ToBase64String(Certificates.SelfSignedValidWithNoEku.RawData));
462Certificates.SelfSignedValidWithNoEku);
482Assert.Equal(Certificates.SelfSignedValidWithNoEku.Issuer, actual.First().Value);
486Assert.Equal(Certificates.SelfSignedValidWithNoEku.Thumbprint, actual.First().Value);
489if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.SubjectName.Name))
495Assert.Equal(Certificates.SelfSignedValidWithNoEku.SubjectName.Name, actual.First().Value);
499if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.SerialNumber))
505Assert.Equal(Certificates.SelfSignedValidWithNoEku.SerialNumber, actual.First().Value);
509if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false)))
515Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false), actual.First().Value);
519if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false)))
525Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false), actual.First().Value);
529if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false)))
535Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false), actual.First().Value);
539if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false)))
545Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false), actual.First().Value);
549if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false)))
555Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false), actual.First().Value);
593Certificates.SelfSignedValidWithNoEku, null, null, false, "", cache);
663Certificates.SelfSignedValidWithNoEku);
720Certificates.SelfSignedValidWithNoEku, null, null, false, "", cache, timeProvider);