74 references to Certificates
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
200var certificates = store.Certificates.Find(X509FindType.FindBySubjectName, findValue: subject, validOnly: true);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
56var certificates = store.Certificates;
dotnet-dev-certs (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (1)
81foreach (X509Certificate2 certificate in certificateStore.Certificates)
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
39certificates = store.Certificates.Find(findType, findValue, false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
912certs = store.Certificates.Find(findType, findValue, false);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
111foreach (var otherCert in store.Certificates)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
81for (var i = store.Certificates.Count - 1; i >= 0; i--) 83var cert = store.Certificates[i];
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
81for (var i = store.Certificates.Count - 1; i >= 0; i--) 83var cert = store.Certificates[i];
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
81for (var i = store.Certificates.Count - 1; i >= 0; i--) 83var cert = store.Certificates[i];
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
81for (var i = store.Certificates.Count - 1; i >= 0; i--) 83var cert = store.Certificates[i];
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
81for (var i = store.Certificates.Count - 1; i >= 0; i--) 83var cert = store.Certificates[i];
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
111foreach (var otherCert in store.Certificates)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
81for (var i = store.Certificates.Count - 1; i >= 0; i--) 83var cert = store.Certificates[i];
Infrastructure.Common (1)
CertificateManager.cs (1)
170X509Certificate2Collection foundCertificates = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, validOnly);
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
72foreach (X509Certificate2 cert in store.Certificates) 89foreach (X509Certificate2 cert in store.Certificates)
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
41var matchingCerts = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, validOnly: true);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (3)
DataProtectionProviderTests.cs (3)
135var certificate = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0]; 187var certInStore = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0]; 280Assert.Empty(store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, false));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
116var certificates = store.Certificates;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
294foreach (var cert in store.Certificates)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
CertificateLoader.cs (1)
41storeCertificates = store.Certificates;
Middleware\HttpsConnectionMiddleware.cs (2)
280var certs = store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, validOnly: false); 296var certs = store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, validOnly: false);
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
72foreach (X509Certificate2 cert in store.Certificates) 89foreach (X509Certificate2 cert in store.Certificates)
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
892X509Certificate2Collection foundCerts = personalStore.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, false); 911X509Certificate2Collection foundCerts = personalStore.Certificates.Find(X509FindType.FindByThumbprint, cert.Thumbprint, false);
ResolveKeySource.cs (1)
182X509Certificate2Collection foundCerts = personalStore.Certificates.Find(X509FindType.FindByThumbprint, CertificateThumbprint, false);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
88X509Certificate2Collection rootCertificates = rootStore.Certificates;
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
922X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
Security.TransportSecurity.IntegrationTests (1)
Tcp\ClientCredentialTypeTests.OSX.cs (1)
108certificates = store.Certificates.Find(X509FindType.FindByThumbprint, certificate.Thumbprint, false);
System.Net.Http (1)
src\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
17candidateCerts = myStore.Certificates;
System.Net.Security (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
459X509Certificate2Collection certList = (trust._trustList ?? trust._store!.Certificates);
System\Net\Security\SslStream.Protocol.cs (2)
229X509Certificate2Collection certs = store.Certificates; 1084chain.ChainPolicy.CustomTrustStore.AddRange(trust._store.Certificates);
System\Net\Security\SslStreamCertificateContext.cs (1)
61chain.ChainPolicy.CustomTrustStore.AddRange(trust._store.Certificates);
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
272X509Certificate2Collection certificates = store.Certificates;
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\Utils.cs (1)
676filters = stores[index].Certificates;
Templates.Blazor.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Mvc.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
Templates.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (3)
178certificates.AddRange(store.Certificates.OfType<X509Certificate2>()); 837var matching = store.Certificates 882var certificatesWithSubjectName = store.Certificates.Find(X509FindType.FindBySerialNumber, certificate.SerialNumber, validOnly: false);
WebTransportInteractiveSampleApp (2)
Program.cs (2)
167if (store.Certificates.Count > 0) 169cert = store.Certificates[^1];
WebTransportSampleApp (2)
Program.cs (2)
52if (store.Certificates.Count > 0) 54cert = store.Certificates[^1];