154 references to My
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
50using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
Client.ChannelLayer.IntegrationTests (3)
DuplexChannelWithSynchronizationContext.cs (3)
47StoreName.My, 108StoreName.My, 184StoreName.My,
dotnet-dev-certs (14)
Program.cs (2)
278var certificates = certificateManager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true); 344var certificates = manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, exportPath.HasValue());
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (1)
76X509Store certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (1)
12internal const StoreName DefaultStoreName = StoreName.My;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
16internal const StoreName DefaultStoreName = StoreName.My;
Http3SampleApp (2)
Program.cs (2)
27var cert = CertificateLoader.LoadFromStoreCert("localhost", StoreName.My.ToString(), StoreLocation.CurrentUser, false); 55listenOptions.UseHttps(StoreName.My, "localhost");
Infrastructure.Common (2)
CertificateManager.cs (2)
212return CertificateFromThumbprint(StoreName.My, StoreLocation.CurrentUser, thumbprint, validOnly); 245certificate = AddToStoreIfNeeded(StoreName.My, StoreLocation.CurrentUser, certificate);
Kestrel.SampleApp (1)
Startup.cs (1)
123listenOptions.UseHttps(StoreName.My, "localhost", allowInvalid: true);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (7)
DataProtectionProviderTests.cs (7)
117[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)] 124using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 133var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 170[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)] 173using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 184using (var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser)) 268using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (17)
CertificateManagerTests.cs (17)
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); 392var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true); 410var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true); 427var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true); 445var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true); 468var httpsCertificateList = _manager.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true); 535Manager.RemoveAllCertificates(StoreName.My, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Internal\Certificates\CertificateConfigLoader.cs (1)
180var storeName = string.IsNullOrEmpty(certInfo.Store) ? StoreName.My.ToString() : certInfo.Store;
KestrelServerOptions.cs (1)
378var certs = CertificateManager.Instance.ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: false);
Middleware\HttpsConnectionMiddleware.cs (1)
261var store = new X509Store(StoreName.My, storeLocation);
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\SecurityUtil.cs (2)
888var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 907var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
ResolveKeySource.cs (1)
178var personalStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
Microsoft.Build.Tasks.UnitTests (1)
SecurityUtil_Tests.cs (1)
55private static readonly X509Store s_personalStore = new(StoreName.My, StoreLocation.CurrentUser);
Security.TransportSecurity.IntegrationTests (8)
Https\HttpsTests.4.1.0.cs (5)
44StoreName.My, 377StoreName.My, 426StoreName.My, 487StoreName.My, 546StoreName.My,
Tcp\ClientCredentialTypeTests.4.1.0.cs (2)
41StoreName.My, 93StoreName.My,
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
251StoreName.My,
System.Net.Http (1)
src\libraries\Common\src\System\Net\Security\CertificateHelper.Unix.cs (1)
14using (var myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser))
System.Net.Security (1)
System\Net\CertificateValidationPal.Unix.cs (1)
184X509Store store = new X509Store(StoreName.My, storeLocation);
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509Store.cs (1)
48StoreName.My => MyStoreName,
System.Security.Cryptography.Pkcs (2)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (2)
20certs.AddRange(PkcsHelpers.GetStoreCertificates(StoreName.My, StoreLocation.CurrentUser, openExistingOnly: false)); 26PkcsHelpers.GetStoreCertificates(StoreName.My, StoreLocation.LocalMachine, openExistingOnly: false));
Templates.Blazor.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Blazor.WebAssembly.Auth.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Blazor.WebAssembly.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Mvc.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
182ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 196var currentUserCertificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true); 197var localMachineCertificates = ListCertificates(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true); 406var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false); 465var certificates = ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 698var name = StoreName.My; 737var removeLocation = storeName == StoreName.My ? RemoveLocations.Local : RemoveLocations.Trusted; 835using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); 869/// Given a certificate, usually from the <see cref="StoreName.My"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false); 383if (store.Name! == StoreName.My.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453return ListCertificates(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);