401 references to StoreLocation
Binding.UDS.IntegrationTests (1)
Certificate.Optional.Sample (1)
Client.ChannelLayer.IntegrationTests (3)
dotnet-dev-certs (28)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
dotnet-svcutil-lib (25)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (6)
15internal const StoreLocation DefaultStoreLocation = StoreLocation.CurrentUser;
88public void SetDefaultCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName)
97public void SetDefaultCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
107public void SetScopedCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName, Uri targetService)
116public void SetScopedCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue, Uri targetService)
Http3SampleApp (1)
IIS.FunctionalTests (3)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (3)
Infrastructure.Common (13)
CertificateManager.cs (12)
19private static StoreLocation s_PlatformSpecificRootStoreLocation = StoreLocation.LocalMachine;
39internal static StoreLocation PlatformSpecificRootStoreLocation
47using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
55s_PlatformSpecificRootStoreLocation = StoreLocation.CurrentUser;
60s_PlatformSpecificRootStoreLocation = StoreLocation.CurrentUser;
89StoreLocation storeLocation,
175StoreLocation storeLocation,
212return CertificateFromThumbprint(StoreName.My, StoreLocation.CurrentUser, thumbprint, validOnly);
218return CertificateFromThumbprint(StoreName.TrustedPeople, StoreLocation.CurrentUser, thumbprint, validOnly);
245certificate = AddToStoreIfNeeded(StoreName.My, StoreLocation.CurrentUser, certificate);
258certificate = AddToStoreIfNeeded(StoreName.TrustedPeople, StoreLocation.CurrentUser, certificate);
InMemory.FunctionalTests (3)
Kestrel.SampleApp (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (9)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (26)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (16)
CertificateManagerTests.cs (16)
56var httpsCertificates = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
113using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
143var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
175var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
208var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
239var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
251var importedCertificate = Assert.Single(_manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false));
272var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
298var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
327var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
345var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
362var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
380var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
403var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
470Manager.RemoveAllCertificates(StoreName.My, StoreLocation.CurrentUser);
473Manager.RemoveAllCertificates(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core (48)
ListenOptionsHttpsExtensions.cs (3)
90=> listenOptions.UseHttps(storeName, subject, allowInvalid, StoreLocation.CurrentUser);
101public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location)
114public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location,
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.Build.Tasks.Core (3)
Microsoft.Build.Tasks.UnitTests (1)
netstandard (1)
PresentationUI (1)
Security.TransportSecurity.IntegrationTests (9)
System (1)
System.Net.Http (1)
System.Net.Security (8)
System.Security.Cryptography (19)
System.Security.Cryptography.Pkcs (3)
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.Xml (2)
System.ServiceModel.Http (1)
System.ServiceModel.Primitives (24)
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (6)
15internal const StoreLocation DefaultStoreLocation = StoreLocation.CurrentUser;
75public void SetDefaultCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName)
84public void SetDefaultCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue)
94public void SetScopedCertificate(string subjectName, StoreLocation storeLocation, StoreName storeName, Uri targetService)
103public void SetScopedCertificate(StoreLocation storeLocation, StoreName storeName, X509FindType findType, object findValue, Uri targetService)
Templates.Blazor.Tests (26)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Templates.Blazor.WebAssembly.Auth.Tests (26)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Templates.Blazor.WebAssembly.Tests (26)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Templates.Mvc.Tests (26)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Templates.Tests (26)
src\Shared\CertificateGeneration\CertificateManager.cs (14)
71StoreLocation location,
170ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
184var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
185var trustedCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
372var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
428var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
448protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
456protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
655var location = StoreLocation.CurrentUser;
687internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
790using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
820public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
866public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
WebTransportInteractiveSampleApp (1)
WebTransportSampleApp (1)