327 references to StoreLocation
aspire (32)
Certificates\CertificateGeneration\CertificateManager.cs (14)
133StoreLocation location,
252ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
287var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
288var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
543var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
609var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
629protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
638protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
858var location = StoreLocation.CurrentUser;
891internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
1020using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1103public void ListCertificatesStart(StoreLocation location, StoreName storeName) =>
1163public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) =>
Aspire.Cli.Tests (2)
Aspire.Dashboard (4)
Aspire.Hosting (5)
Aspire.Playground.Tests (3)
Aspire.TestUtilities (3)
Binding.UDS.IntegrationTests (1)
Client.ChannelLayer.IntegrationTests (3)
dotnet-dev-certs (31)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (14)
135StoreLocation location,
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
632protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
641protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
861var location = StoreLocation.CurrentUser;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1097public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
1143public 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)
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,
177StoreLocation storeLocation,
214return CertificateFromThumbprint(StoreName.My, StoreLocation.CurrentUser, thumbprint, validOnly);
220return CertificateFromThumbprint(StoreName.TrustedPeople, StoreLocation.CurrentUser, thumbprint, validOnly);
247certificate = AddToStoreIfNeeded(StoreName.My, StoreLocation.CurrentUser, certificate);
260certificate = AddToStoreIfNeeded(StoreName.TrustedPeople, StoreLocation.CurrentUser, certificate);
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (28)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (14)
135StoreLocation location,
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
632protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
641protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
861var location = StoreLocation.CurrentUser;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1097public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
1143public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Microsoft.AspNetCore.Server.Kestrel.Core (50)
ListenOptionsHttpsExtensions.cs (3)
94=> listenOptions.UseHttps(storeName, subject, allowInvalid, StoreLocation.CurrentUser);
105public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location)
118public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid, StoreLocation location,
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (14)
135StoreLocation location,
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
632protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
641protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
861var location = StoreLocation.CurrentUser;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1097public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
1143public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Microsoft.Build.Tasks.Core (3)
netstandard (1)
NuGet.CommandLine.XPlat (5)
NuGet.Commands (4)
NuGet.Configuration (9)
PresentationUI (1)
RepoTasks (28)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (14)
135StoreLocation location,
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
632protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
641protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
861var location = StoreLocation.CurrentUser;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1097public void ListCertificatesStart(StoreLocation location, StoreName storeName) => WriteEvent(1, location, storeName);
1143public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) => WriteEvent(20, certificate, name, location);
Security.TransportSecurity.IntegrationTests (9)
System (1)
System.Net.Http (1)
System.Net.Http.WinHttpHandler (1)
System.Net.Security (8)
System.Security.Cryptography (18)
System.Security.Cryptography.Pkcs (7)
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)