338 references to StoreLocation
aspire (35)
Certificates\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);
545var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
611var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
631protected abstract X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation);
640protected abstract IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation);
860var location = StoreLocation.CurrentUser;
893internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
1022using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1105public void ListCertificatesStart(StoreLocation location, StoreName storeName) =>
1165public void SaveCertificateInStoreStart(string certificate, StoreName name, StoreLocation location) =>
Aspire.Cli.Tests (2)
Aspire.Dashboard (4)
Aspire.Hosting (5)
Aspire.Playground.Tests (4)
Aspire.TestUtilities (4)
Binding.UDS.IntegrationTests (1)
Binding.WS.TransportWithMessageCredentialSecurity.IntegrationTests (5)
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)
20private static StoreLocation s_platformSpecificRootStoreLocation = StoreLocation.LocalMachine;
40internal static StoreLocation PlatformSpecificRootStoreLocation
48using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
56s_platformSpecificRootStoreLocation = StoreLocation.CurrentUser;
61s_platformSpecificRootStoreLocation = StoreLocation.CurrentUser;
90StoreLocation storeLocation,
178StoreLocation storeLocation,
215return CertificateFromThumbprint(StoreName.My, StoreLocation.CurrentUser, thumbprint, validOnly);
221return CertificateFromThumbprint(StoreName.TrustedPeople, StoreLocation.CurrentUser, thumbprint, validOnly);
336certificate = AddToStoreIfNeeded(StoreName.My, StoreLocation.CurrentUser, certificate);
349certificate = 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 (10)
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)