36 references to LocalMachine
aspire (2)
Certificates\CertificateGeneration\CertificateManager.cs (1)
288var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
src\Shared\X509Certificate2Extensions.cs (1)
92(StoreName.Root, StoreLocation.LocalMachine),
Aspire.Hosting (1)
src\Shared\X509Certificate2Extensions.cs (1)
92(StoreName.Root, StoreLocation.LocalMachine),
Aspire.Playground.Tests (1)
src\Shared\X509Certificate2Extensions.cs (1)
92(StoreName.Root, StoreLocation.LocalMachine),
Aspire.TestUtilities (1)
src\Shared\X509Certificate2Extensions.cs (1)
92(StoreName.Root, StoreLocation.LocalMachine),
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509ClientCertificateAuthentication.cs (2)
14internal const StoreLocation DefaultTrustedStoreLocation = StoreLocation.LocalMachine; 23bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (2)
43bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine; 122bool useMachineContext = _trustedStoreLocation == StoreLocation.LocalMachine;
Infrastructure.Common (2)
CertificateManager.cs (2)
19private static StoreLocation s_platformSpecificRootStoreLocation = StoreLocation.LocalMachine; 47using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
32?? GetCertificateFromStore(StoreLocation.LocalMachine, thumbprint);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Middleware\HttpsConnectionMiddleware.cs (6)
304var store = OpenStore(StoreLocation.LocalMachine); 314_logger.FoundCertWithPrivateKey(certs[0], StoreLocation.LocalMachine); 636var storeLocationString = storeLocation == StoreLocation.LocalMachine ? nameof(StoreLocation.LocalMachine) : nameof(StoreLocation.CurrentUser); 651var storeLocationString = storeLocation == StoreLocation.LocalMachine ? nameof(StoreLocation.LocalMachine) : nameof(StoreLocation.CurrentUser);
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
NuGet.Configuration (1)
Settings\Items\StoreClientCertItem.cs (1)
168GetString(StoreLocation.LocalMachine)
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
System.Net.Security (2)
System\Net\CertificateValidationPal.cs (1)
35StoreLocation storeLocation = isMachineStore ? StoreLocation.LocalMachine : StoreLocation.CurrentUser;
System\Net\CertificateValidationPal.Unix.cs (1)
176if (storeLocation == StoreLocation.LocalMachine)
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (1)
235if (storeLocation == StoreLocation.LocalMachine)
System\Security\Cryptography\X509Certificates\X509Store.cs (2)
39if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine) 65if (storeLocation != StoreLocation.CurrentUser && storeLocation != StoreLocation.LocalMachine)
System.Security.Cryptography.Pkcs (3)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
26PkcsHelpers.GetStoreCertificates(StoreName.My, StoreLocation.LocalMachine, openExistingOnly: false));
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (1)
221candidateCerts.AddRange(PkcsHelpers.GetStoreCertificates(StoreName.AddressBook, StoreLocation.LocalMachine, openExistingOnly: true));
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (1)
60certs.AddRange(PkcsHelpers.GetStoreCertificates(StoreName.My, StoreLocation.LocalMachine, openExistingOnly: true));
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\Utils.cs (1)
656stores[1] = new X509Store(storeName, StoreLocation.LocalMachine);
System.ServiceModel.Primitives (4)
System\ServiceModel\Security\X509ClientCertificateAuthentication.cs (2)
15internal const StoreLocation DefaultTrustedStoreLocation = StoreLocation.LocalMachine; 24bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine;
System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (2)
48bool useMachineContext = DefaultTrustedStoreLocation == StoreLocation.LocalMachine; 135bool useMachineContext = _trustedStoreLocation == StoreLocation.LocalMachine;