497 references to StoreName
aspire (5)
Aspire.Hosting (4)
Aspire.Playground.Tests (3)
Aspire.TestUtilities (3)
Binding.UDS.IntegrationTests (1)
Client.ChannelLayer.IntegrationTests (3)
dotnet-dev-certs (34)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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 (16)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (6)
16internal const StoreName DefaultStoreName = StoreName.My;
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 (2)
IIS.FunctionalTests (3)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.ShadowCopy.Tests (2)
IISExpress.FunctionalTests (3)
Infrastructure.Common (9)
CertificateManager.cs (9)
47using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
88public static X509Certificate2 AddToStoreIfNeeded(StoreName storeName,
176private static X509Certificate2 CertificateFromThumbprint(StoreName storeName,
208return CertificateFromThumbprint(StoreName.Root, PlatformSpecificRootStoreLocation, thumbprint, validOnly);
214return CertificateFromThumbprint(StoreName.My, StoreLocation.CurrentUser, thumbprint, validOnly);
220return CertificateFromThumbprint(StoreName.TrustedPeople, StoreLocation.CurrentUser, thumbprint, validOnly);
235certificate = AddToStoreIfNeeded(StoreName.Root, PlatformSpecificRootStoreLocation, certificate);
247certificate = AddToStoreIfNeeded(StoreName.My, StoreLocation.CurrentUser, certificate);
260certificate = AddToStoreIfNeeded(StoreName.TrustedPeople, StoreLocation.CurrentUser, certificate);
InMemory.FunctionalTests (3)
Kestrel.SampleApp (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (9)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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.DeveloperCertificates.XPlat.Tests (18)
CertificateManagerTests.cs (18)
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);
299var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
321Assert.Empty(_manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false));
339var httpsCertificate = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
393var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
413var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
451var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
469var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
500var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true);
569Manager.RemoveAllCertificates(StoreName.My, StoreLocation.CurrentUser);
572Manager.RemoveAllCertificates(StoreName.Root, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core (38)
ListenOptionsHttpsExtensions.cs (4)
78public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject)
89public static ListenOptions UseHttps(this ListenOptions listenOptions, StoreName storeName, string subject, bool allowInvalid)
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 (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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.Tests (2)
Microsoft.AspNetCore.Shared.Tests (68)
CertificateManagerTests.cs (21)
147manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, v3Certificate, isExportable: true);
148manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, v4Certificate, isExportable: true);
149manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, v6Certificate, isExportable: true);
151var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
168manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, olderCertificate, isExportable: true);
174var certificates = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser);
187manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, minimumCertificate, isExportable: true);
189var beforeCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
191var afterCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
195Assert.DoesNotContain(manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser),
208manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, minimumCertificate, isExportable: true);
210var beforeCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
212var afterCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
213var certificates = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser);
230manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, currentCertificate, isExportable: true);
232var beforeCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
234var afterCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
249manager.AddCertificate(StoreName.My, StoreLocation.CurrentUser, newerCertificate, isExportable: true);
251var beforeCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
253var afterCount = manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser).Count;
257Assert.Contains(manager.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser),
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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);
TestCertificateManager.cs (16)
60public void AddCertificate(StoreName storeName, StoreLocation storeLocation, X509Certificate2 certificate, bool? isExportable = null)
71public IReadOnlyList<X509Certificate2> GetStoreCertificates(StoreName storeName, StoreLocation storeLocation)
81public void RemoveStoreCertificates(StoreName storeName, StoreLocation storeLocation)
258if (!Enum.TryParse<StoreName>(store.Name, ignoreCase: true, out var storeName))
275protected override X509Certificate2 SaveCertificateCore(X509Certificate2 certificate, StoreName storeName, StoreLocation storeLocation)
284AddCertificate(StoreName.Root, StoreLocation.CurrentUser, certificate, isExportable: true);
290return IsCertificateInStore(StoreName.Root, certificate) ? TrustLevel.Full : TrustLevel.None;
305RemoveFromStores(StoreName.Root, certificate);
308protected override IList<X509Certificate2> GetCertificatesToRemove(StoreName storeName, StoreLocation storeLocation)
325RemoveFromStore(StoreName.My, StoreLocation.CurrentUser, certificate);
338private List<InMemoryCertificateEntry> GetOrCreateStore(StoreName storeName, StoreLocation storeLocation)
355private void RemoveFromStores(StoreName storeName, X509Certificate2 certificate)
363private bool IsCertificateInStore(StoreName storeName, X509Certificate2 certificate)
377private void RemoveFromStore(StoreName storeName, StoreLocation storeLocation, X509Certificate2 certificate)
399internal readonly record struct StoreKey(StoreName StoreName, StoreLocation StoreLocation);
Microsoft.DotNet.SignCheckLibrary (1)
netstandard (1)
RepoTasks (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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.Security (1)
System.Security.Cryptography (13)
System\Security\Cryptography\X509Certificates\X509Store.cs (11)
27public X509Store(StoreName storeName)
37public X509Store(StoreName storeName, StoreLocation storeLocation)
44StoreName.AddressBook => "AddressBook",
45StoreName.AuthRoot => "AuthRoot",
46StoreName.CertificateAuthority => IntermediateCAStoreName,
47StoreName.Disallowed => DisallowedStoreName,
48StoreName.My => MyStoreName,
49StoreName.Root => RootStoreName,
50StoreName.TrustedPeople => "TrustedPeople",
51StoreName.TrustedPublisher => "TrustedPublisher",
57public X509Store(StoreName storeName, StoreLocation storeLocation, OpenFlags flags)
System.Security.Cryptography.Pkcs (3)
System.Security.Cryptography.X509Certificates (1)
System.ServiceModel.Http (1)
System.ServiceModel.Primitives (17)
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (6)
16internal const StoreName DefaultStoreName = StoreName.My;
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 (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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);
Templates.Blazor.WebAssembly.Auth.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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);
Templates.Blazor.WebAssembly.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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);
Templates.Mvc.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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);
Templates.Tests (31)
src\Shared\CertificateGeneration\CertificateManager.cs (17)
134StoreName storeName,
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);
860var name = StoreName.My;
894internal void RemoveAllCertificates(StoreName storeName, StoreLocation storeLocation)
899var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
1057/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
1058/// corresponding certificate in <paramref name="store"/> (usually the <see cref="StoreName.Root"/> store)."/>
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);