259 references to CurrentUser
aspire (3)
Aspire.Dashboard (1)
Aspire.Hosting (2)
Aspire.Playground.Tests (2)
Aspire.TestUtilities (2)
Binding.UDS.IntegrationTests (1)
Certificate.Optional.Sample (1)
Client.ChannelLayer.IntegrationTests (3)
dotnet-dev-certs (17)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
dotnet-svcutil-lib (4)
Http3SampleApp (1)
Infrastructure.Common (6)
CertificateManager.cs (6)
55s_platformSpecificRootStoreLocation = StoreLocation.CurrentUser;
60s_platformSpecificRootStoreLocation = StoreLocation.CurrentUser;
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);
InMemory.FunctionalTests (2)
Kestrel.SampleApp (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (7)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
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 (21)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Shared.Tests (37)
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 (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
PresentationUI (1)
RepoTasks (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Security.TransportSecurity.IntegrationTests (9)
System.Net.Http (1)
System.Net.Security (2)
System.Security.Cryptography (8)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.Xml (1)
System.ServiceModel.Http (1)
System.ServiceModel.Primitives (4)
Templates.Blazor.Tests (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Templates.Blazor.WebAssembly.Auth.Tests (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Templates.Blazor.WebAssembly.Tests (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Templates.Mvc.Tests (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Templates.Tests (14)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
254ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
289var allCurrentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
546var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
612var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false);
861var location = StoreLocation.CurrentUser;
1023using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
WebTransportInteractiveSampleApp (1)
WebTransportSampleApp (1)