148 references to My
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
50
using (var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser))
Client.ChannelLayer.IntegrationTests (3)
DuplexChannelWithSynchronizationContext.cs (3)
48
StoreName.
My
,
110
StoreName.
My
,
187
StoreName.
My
,
dotnet-dev-certs (15)
Program.cs (3)
303
var certificates = certificateManager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
364
var availableCertificates = CertificateManager.Instance.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
379
var certificates = manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, exportPath.HasValue());
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (1)
76
X509Store certificateStore = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (1)
12
internal const StoreName DefaultStoreName = StoreName.
My
;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
16
internal const StoreName DefaultStoreName = StoreName.
My
;
Http3SampleApp (2)
Program.cs (2)
27
var cert = CertificateLoader.LoadFromStoreCert("localhost", StoreName.
My
.ToString(), StoreLocation.CurrentUser, false);
55
listenOptions.UseHttps(StoreName.
My
, "localhost");
Infrastructure.Common (2)
CertificateManager.cs (2)
212
return CertificateFromThumbprint(StoreName.
My
, StoreLocation.CurrentUser, thumbprint, validOnly);
245
certificate = AddToStoreIfNeeded(StoreName.
My
, StoreLocation.CurrentUser, certificate);
Kestrel.SampleApp (1)
Startup.cs (1)
123
listenOptions.UseHttps(StoreName.
My
, "localhost", allowInvalid: true);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (7)
DataProtectionProviderTests.cs (7)
117
[X509StoreIsAvailable(StoreName.
My
, StoreLocation.CurrentUser)]
124
using (var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser))
133
var certificateStore = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
170
[X509StoreIsAvailable(StoreName.
My
, StoreLocation.CurrentUser)]
173
using (var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser))
184
using (var certificateStore = new X509Store(StoreName.
My
, StoreLocation.CurrentUser))
268
using (var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (17)
CertificateManagerTests.cs (17)
56
var httpsCertificates = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
113
using (var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser))
143
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
175
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
208
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
239
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
251
var importedCertificate = Assert.Single(_manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false));
272
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
299
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
321
Assert.Empty(_manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false));
339
var httpsCertificate = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false).Single(c => c.Subject == TestCertificateSubject);
393
var httpsCertificateList = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
413
var httpsCertificateList = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
451
var httpsCertificateList = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
469
var httpsCertificateList = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
500
var httpsCertificateList = _manager.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true);
569
Manager.RemoveAllCertificates(StoreName.
My
, StoreLocation.CurrentUser);
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Internal\Certificates\CertificateConfigLoader.cs (1)
180
var storeName = string.IsNullOrEmpty(certInfo.Store) ? StoreName.
My
.ToString() : certInfo.Store;
KestrelServerOptions.cs (1)
382
var certs = CertificateManager.Instance.ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: false);
Middleware\HttpsConnectionMiddleware.cs (1)
274
var store = new X509Store(StoreName.
My
, storeLocation);
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Security.TransportSecurity.IntegrationTests (8)
Https\HttpsTests.4.1.0.cs (5)
44
StoreName.
My
,
377
StoreName.
My
,
426
StoreName.
My
,
488
StoreName.
My
,
548
StoreName.
My
,
Tcp\ClientCredentialTypeTests.4.1.0.cs (2)
41
StoreName.
My
,
93
StoreName.
My
,
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
254
StoreName.
My
,
System.Security.Cryptography.Pkcs (2)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (2)
20
certs.AddRange(PkcsHelpers.GetStoreCertificates(StoreName.
My
, StoreLocation.CurrentUser, openExistingOnly: false));
26
PkcsHelpers.GetStoreCertificates(StoreName.
My
, StoreLocation.LocalMachine, openExistingOnly: false));
Templates.Blazor.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Blazor.WebAssembly.Auth.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Blazor.WebAssembly.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Mvc.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
Templates.Tests (12)
src\Shared\CertificateGeneration\CertificateManager.cs (9)
223
ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
237
var currentUserCertificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
238
var localMachineCertificates = ListCertificates(StoreName.
My
, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
447
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
506
var certificates = ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
743
var name = StoreName.
My
;
782
var removeLocation = storeName == StoreName.
My
? RemoveLocations.Local : RemoveLocations.Trusted;
880
using var store = new X509Store(StoreName.
My
, StoreLocation.CurrentUser);
914
/// Given a certificate, usually from the <see cref="StoreName.
My
"/> store, try to find the
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
378
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false);
383
if (store.Name! == StoreName.
My
.ToString() && store.Location == StoreLocation.CurrentUser && Directory.Exists(MacOSUserHttpsCertificateLocation))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return ListCertificates(StoreName.
My
, StoreLocation.CurrentUser, isValid: false, requireExportable: false);