80 instantiations of X509Store
aspire (9)
Certificates\CertificateGeneration\CertificateManager.cs (2)
141using var store = new X509Store(storeName, location); 1020using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Certificates\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (3)
65using (var store = new X509Store(storeName, storeLocation)) 77using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 106using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
199using var store = new X509Store(storeName: storeName, storeLocation: location);
Aspire.Hosting (4)
ApplicationModel\CertificateAuthorityCollectionResourceExtensions.cs (1)
121using var store = new X509Store(storeName, storeLocation);
DeveloperCertificateService.cs (2)
32using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 68using var rootStore = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
Aspire.Playground.Tests (2)
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
tests\Aspire.TestUtilities\RequiresFeatureAttribute.cs (1)
99using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Aspire.TestUtilities (2)
RequiresFeatureAttribute.cs (1)
99using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
50using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
dotnet-dev-certs (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
143using var store = new X509Store(storeName, location); 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (1)
76X509Store certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
34X509Store store = new X509Store(storeName, storeLocation);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
907X509Store store = new X509Store(storeName, storeLocation);
Infrastructure.Common (6)
CertificateManager.cs (6)
47using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 97using (X509Store store = new X509Store(storeName, storeLocation)) 106using (X509Store store = new X509Store(storeName, storeLocation)) 140using (X509Store store = new X509Store(keychain.DangerousGetHandle())) 182using (X509Store store = new X509Store(storeName, storeLocation)) 196using (X509Store store = new X509Store(handle.DangerousGetHandle()))
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
37var store = new X509Store(location);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
143using var store = new X509Store(storeName, location); 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core (10)
CertificateLoader.cs (1)
33using (var store = new X509Store(storeName, storeLocation))
Middleware\HttpsConnectionMiddleware.cs (1)
291var store = new X509Store(StoreName.My, storeLocation);
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
143using var store = new X509Store(storeName, location); 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
884var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 903var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
ResolveKeySource.cs (1)
179var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
NuGet.Commands (1)
SignCommand\CertificateProvider.cs (1)
181using var store = new X509Store(options.StoreName, options.StoreLocation);
NuGet.Configuration (1)
Settings\Items\StoreClientCertItem.cs (1)
239var store = new X509Store(StoreName, StoreLocation);
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
905X509Store store = new X509Store(StoreLocation.CurrentUser);
RepoTasks (8)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (2)
143using var store = new X509Store(storeName, location); 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeTests.OSX.cs (2)
143using (store = new X509Store(keychain.DangerousGetHandle())) 153using (store = new X509Store(StoreName.Disallowed, StoreLocation.CurrentUser))
System.Net.Http (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
14using (var myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateHelper.Windows.cs (1)
14using (var myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.Net.Security (1)
System\Net\CertificateValidationPal.Unix.cs (1)
184X509Store store = new X509Store(StoreName.My, storeLocation);
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
155using (X509Store store = new X509Store(storeName, storeLocation))
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Utils.cs (2)
655stores[0] = new X509Store(storeName, StoreLocation.CurrentUser); 656stores[1] = new X509Store(storeName, StoreLocation.LocalMachine);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
298using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.ServiceModel.Primitives (2)
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
124X509Store store = new X509Store(storeName, StoreLocation.CurrentUser);
System\ServiceModel\Security\SecurityUtils.cs (1)
872X509Store store = new X509Store(storeName, storeLocation);
117 references to X509Store
aspire (13)
Certificates\CertificateGeneration\CertificateManager.cs (5)
141using var store = new X509Store(storeName, location); 246protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 1020using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 1057/// <param name="store">An open <see cref="X509Store"/>.</param> 1062internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
Certificates\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (3)
65using (var store = new X509Store(storeName, storeLocation)) 77using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 106using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
199using var store = new X509Store(storeName: storeName, storeLocation: location);
Aspire.Hosting (5)
ApplicationModel\CertificateAuthorityCollectionResourceExtensions.cs (1)
121using var store = new X509Store(storeName, storeLocation);
DeveloperCertificateService.cs (3)
32using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 68using var rootStore = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 185private static IEnumerable<X509Certificate2> FindDevCertificates(X509Store store, DateTimeOffset now)
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
Aspire.Playground.Tests (2)
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
tests\Aspire.TestUtilities\RequiresFeatureAttribute.cs (1)
99using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Aspire.TestUtilities (2)
RequiresFeatureAttribute.cs (1)
99using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\X509Certificate2Extensions.cs (1)
97using var store = new X509Store(storeName, storeLocation);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
50using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
dotnet-dev-certs (12)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (5)
143using var store = new X509Store(storeName, location); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 1060/// <param name="store">An open <see cref="X509Store"/>.</param> 1065internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (1)
76X509Store certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
34X509Store store = new X509Store(storeName, storeLocation);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
907X509Store store = new X509Store(storeName, storeLocation);
Infrastructure.Common (7)
CertificateManager.cs (7)
47using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 97using (X509Store store = new X509Store(storeName, storeLocation)) 106using (X509Store store = new X509Store(storeName, storeLocation)) 140using (X509Store store = new X509Store(keychain.DangerousGetHandle())) 170private static X509Certificate2 CertificateFromThumbprint(X509Store store, string thumbprint, bool validOnly) 182using (X509Store store = new X509Store(storeName, storeLocation)) 196using (X509Store store = new X509Store(handle.DangerousGetHandle()))
Microsoft.AspNetCore.DataProtection (2)
XmlEncryption\CertificateResolver.cs (1)
37var store = new X509Store(location);
XmlEncryption\EncryptedXmlDecryptor.cs (1)
87/// Can decrypt the XML key data from an <see cref="X509Certificate2"/> that is not in stored in <see cref="X509Store"/>.
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (5)
143using var store = new X509Store(storeName, location); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 1060/// <param name="store">An open <see cref="X509Store"/>.</param> 1065internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core (16)
CertificateLoader.cs (1)
33using (var store = new X509Store(storeName, storeLocation))
Middleware\HttpsConnectionMiddleware.cs (3)
287X509Store? OpenStore(StoreLocation storeLocation) 291var store = new X509Store(StoreName.My, storeLocation); 304var store = OpenStore(StoreLocation.LocalMachine);
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (5)
143using var store = new X509Store(storeName, location); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 1060/// <param name="store">An open <see cref="X509Store"/>.</param> 1065internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
884var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 903var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
ResolveKeySource.cs (1)
179var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
netstandard (1)
netstandard.cs (1)
1980[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Store))]
NuGet.Commands (2)
SignCommand\CertificateProvider.cs (2)
181using var store = new X509Store(options.StoreName, options.StoreLocation); 230private static void OpenStore(X509Store store)
NuGet.Configuration (1)
Settings\Items\StoreClientCertItem.cs (1)
239var store = new X509Store(StoreName, StoreLocation);
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
905X509Store store = new X509Store(StoreLocation.CurrentUser);
RepoTasks (12)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (5)
143using var store = new X509Store(storeName, location); 248protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 1060/// <param name="store">An open <see cref="X509Store"/>.</param> 1065internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
178using (var store = new X509Store(storeName, storeLocation)) 208using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 447using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
69using (var store = new X509Store(storeName, storeLocation)) 81using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 110using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeTests.OSX.cs (2)
103static bool StoreContainsCertificate(X509Store store, X509Certificate2 certificate) 140X509Store store;
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
886[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Store))]
System.Net.Http (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
14using (var myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateHelper.Windows.cs (1)
14using (var myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.Net.Security (9)
System\Net\CertificateValidationPal.cs (4)
17private static X509Store? s_myCertStoreEx; 18private static X509Store? s_myMachineCertStoreEx; 29internal static X509Store? EnsureStoreOpened(bool isMachineStore) 31X509Store? store = isMachineStore ? s_myMachineCertStoreEx : s_myCertStoreEx;
System\Net\CertificateValidationPal.Unix.cs (2)
180private static X509Store OpenStore(StoreLocation storeLocation) 184X509Store store = new X509Store(StoreName.My, storeLocation);
System\Net\Security\SslCertificateTrust.cs (2)
10internal X509Store? _store; 14public static SslCertificateTrust CreateForX509Store(X509Store store, bool sendTrustInHandshake = false)
System\Net\Security\SslStream.Protocol.cs (1)
204if (CertificateValidationPal.EnsureStoreOpened(isServer) is X509Store store)
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
155using (X509Store store = new X509Store(storeName, storeLocation))
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
44[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Store))]
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Utils.cs (2)
653X509Store[] stores = new X509Store[2];
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
298using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.ServiceModel.Primitives (2)
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
124X509Store store = new X509Store(storeName, StoreLocation.CurrentUser);
System\ServiceModel\Security\SecurityUtils.cs (1)
872X509Store store = new X509Store(storeName, storeLocation);