122 instantiations of X509Store
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
196using var store = new X509Store(storeName: storeName, storeLocation: location);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
50using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
dotnet-dev-certs (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using 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);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
107using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
107using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
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())) 180using (X509Store store = new X509Store(storeName, storeLocation)) 194using (X509Store store = new X509Store(handle.DangerousGetHandle()))
InMemory.FunctionalTests (3)
HttpsConnectionMiddlewareTests.cs (1)
806using (var store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
69using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine)) 86using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
37var store = new X509Store(location);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (5)
124using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 133var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 173using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 184using (var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 268using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
X509StoreIsAvailableAttribute.cs (1)
25using (var store = new X509Store(Name, Location))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
113using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
291var store = new X509Store();
Microsoft.AspNetCore.Server.Kestrel.Core (10)
CertificateLoader.cs (1)
33using (var store = new X509Store(storeName, storeLocation))
Middleware\HttpsConnectionMiddleware.cs (1)
261var store = new X509Store(StoreName.My, storeLocation);
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
69using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine)) 86using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
888var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 907var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
ResolveKeySource.cs (1)
178var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Microsoft.Build.Tasks.UnitTests (1)
SecurityUtil_Tests.cs (1)
55private static readonly X509Store s_personalStore = new(StoreName.My, StoreLocation.CurrentUser);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
69using (var rootStore = new X509Store(StoreName.Root))
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
920X509Store store = new X509Store(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\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.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 (2)
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (2)
111using (new X509Store(StoreName.Disallowed, StoreLocation.CurrentUser, OpenFlags.ReadOnly)) 205using (var userIntermediate = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
265using (X509Store store = new X509Store(storeName, storeLocation))
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Utils.cs (2)
664stores[0] = new X509Store(storeName, StoreLocation.CurrentUser); 665stores[1] = new X509Store(storeName, StoreLocation.LocalMachine);
Templates.Blazor.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Blazor.WebAssembly.Auth.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Blazor.WebAssembly.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Mvc.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
91using var store = new X509Store(storeName, location); 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
165var store = new X509Store("KestrelSampleWebTransportCertificates", StoreLocation.CurrentUser);
WebTransportSampleApp (1)
Program.cs (1)
50var store = new X509Store("KestrelSampleWebTransportCertificates", StoreLocation.CurrentUser);
176 references to X509Store
Aspire.Dashboard (1)
ResourceService\DashboardClient.cs (1)
196using var store = new X509Store(storeName: storeName, storeLocation: location);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
50using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
dotnet-dev-certs (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using 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);
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
107using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
107using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\ClientCertificateFixture.cs (2)
23using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine)) 75using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
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())) 168private static X509Certificate2 CertificateFromThumbprint(X509Store store, string thumbprint, bool validOnly) 180using (X509Store store = new X509Store(storeName, storeLocation)) 194using (X509Store store = new X509Store(handle.DangerousGetHandle()))
InMemory.FunctionalTests (3)
HttpsConnectionMiddlewareTests.cs (1)
806using (var store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
69using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine)) 86using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
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.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (5)
124using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 133var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 173using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 184using (var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 268using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
X509StoreIsAvailableAttribute.cs (1)
25using (var store = new X509Store(Name, Location))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
CertificateManagerTests.cs (1)
113using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
291var store = new X509Store();
Microsoft.AspNetCore.Server.Kestrel.Core (16)
CertificateLoader.cs (1)
33using (var store = new X509Store(storeName, storeLocation))
Middleware\HttpsConnectionMiddleware.cs (3)
257X509Store? OpenStore(StoreLocation storeLocation) 261var store = new X509Store(StoreName.My, storeLocation); 274var store = OpenStore(StoreLocation.LocalMachine);
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertHelper.cs (2)
69using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine)) 86using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
888var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 907var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
ResolveKeySource.cs (1)
178var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Microsoft.Build.Tasks.UnitTests (1)
SecurityUtil_Tests.cs (1)
55private static readonly X509Store s_personalStore = new(StoreName.My, StoreLocation.CurrentUser);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\XmlVerifier.cs (1)
69using (var rootStore = new X509Store(StoreName.Root))
netstandard (1)
netstandard.cs (1)
1980[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Store))]
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
920X509Store store = new X509Store(StoreLocation.CurrentUser);
Security.TransportSecurity.IntegrationTests (2)
Tcp\ClientCredentialTypeTests.OSX.cs (2)
103static bool StoreContainsCertificate(X509Store store, X509Certificate2 certificate) 140X509Store store;
System (1)
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\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
14using (var myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.Net.Security (9)
System\Net\CertificateValidationPal.cs (4)
17private static volatile X509Store? s_myCertStoreEx; 18private static volatile 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)
11internal X509Store? _store; 15public static SslCertificateTrust CreateForX509Store(X509Store store, bool sendTrustInHandshake = false)
System\Net\Security\SslStream.Protocol.cs (1)
227if (CertificateValidationPal.EnsureStoreOpened(isServer) is X509Store store)
System.Security.Cryptography (9)
System\Security\Cryptography\X509Certificates\ChainPal.OpenSsl.cs (1)
205using (var userIntermediate = new X509Store(StoreName.CertificateAuthority, StoreLocation.CurrentUser))
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (2)
47Debug.Assert(!X509Store.DisallowedStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase)); 385string storePath = GetStorePath(X509Store.DisallowedStoreName);
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (3)
29new OpenSslCachedDirectoryStoreProvider(X509Store.RootStoreName); 32new OpenSslCachedDirectoryStoreProvider(X509Store.IntermediateCAStoreName); 35new OpenSslCachedDirectoryStoreProvider(X509Store.MyStoreName);
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
145if (X509Store.DisallowedStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase)) 166if (X509Store.RootStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase)) 171if (X509Store.IntermediateCAStoreName.Equals(storeName, StringComparison.OrdinalIgnoreCase))
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
265using (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)
662X509Store[] stores = new X509Store[2];
Templates.Blazor.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Blazor.WebAssembly.Auth.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Blazor.WebAssembly.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Mvc.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
Templates.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (5)
91using var store = new X509Store(storeName, location); 176protected virtual void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable) 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 872/// <param name="store">An open <see cref="X509Store"/>.</param> 877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
381protected override void PopulateCertificatesFromStore(X509Store store, List<X509Certificate2> certificates, bool requireExportable)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (3)
159using (var store = new X509Store(storeName, storeLocation)) 189using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 363using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (3)
64using (var store = new X509Store(storeName, storeLocation)) 76using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser); 105using var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
WebTransportInteractiveSampleApp (1)
Program.cs (1)
165var store = new X509Store("KestrelSampleWebTransportCertificates", StoreLocation.CurrentUser);
WebTransportSampleApp (1)
Program.cs (1)
50var store = new X509Store("KestrelSampleWebTransportCertificates", StoreLocation.CurrentUser);