53 references to LocalMachine
aspire (2)
src\Shared\X509Certificate2Extensions.cs (1)
93(StoreName.Root, StoreLocation.LocalMachine),
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
364(StoreName.Root, StoreLocation.LocalMachine)
Aspire.Hosting (1)
src\Shared\X509Certificate2Extensions.cs (1)
93(StoreName.Root, StoreLocation.LocalMachine),
Aspire.Playground.Tests (1)
src\Shared\X509Certificate2Extensions.cs (1)
93(StoreName.Root, StoreLocation.LocalMachine),
Aspire.TestUtilities (1)
src\Shared\X509Certificate2Extensions.cs (1)
93(StoreName.Root, StoreLocation.LocalMachine),
dotnet-dev-certs (1)
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;
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (1)
106using (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.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)
106using (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 (2)
CertificateManager.cs (2)
19private static StoreLocation s_platformSpecificRootStoreLocation = StoreLocation.LocalMachine; 47using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
69using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine))
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\CertificateResolver.cs (1)
32?? GetCertificateFromStore(StoreLocation.LocalMachine, thumbprint);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
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)
287var store = OpenStore(StoreLocation.LocalMachine); 297_logger.FoundCertWithPrivateKey(certs[0], StoreLocation.LocalMachine); 619var storeLocationString = storeLocation == StoreLocation.LocalMachine ? nameof(StoreLocation.LocalMachine) : nameof(StoreLocation.CurrentUser); 634var storeLocationString = storeLocation == StoreLocation.LocalMachine ? nameof(StoreLocation.LocalMachine) : nameof(StoreLocation.CurrentUser);
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertHelper.cs (1)
69using (X509Store store = new X509Store(StoreName.CertificateAuthority, StoreLocation.LocalMachine))
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
RepoTasks (1)
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.OpenSsl.cs (1)
153Debug.Assert(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 (1)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
26PkcsHelpers.GetStoreCertificates(StoreName.My, StoreLocation.LocalMachine, openExistingOnly: false));
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\Utils.cs (1)
653stores[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;
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
290var allLocalMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);