25 references to ListCertificates
Microsoft.AspNetCore.DeveloperCertificates.XPlat (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
219
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
233
var currentUserCertificates =
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: true, requireExportable: true);
234
var localMachineCertificates =
ListCertificates
(StoreName.My, StoreLocation.LocalMachine, isValid: true, requireExportable: true);
443
var certificates =
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
502
var certificates =
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: false);
915
/// <remarks><see cref="
ListCertificates
"/> has richer filtering and a lot of debugging output that's unhelpful here.</remarks>
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
378
return
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: false);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
453
return
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: false, requireExportable: false);
src\Shared\CertificateGeneration\WindowsCertificateManager.cs (2)
122
var isTrusted =
ListCertificates
(StoreName.Root, StoreLocation.CurrentUser, isValid: true, requireExportable: false)
129
return
ListCertificates
(storeName, storeLocation, isValid: false);
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (15)
CertificateManagerTests.cs (15)
56
var httpsCertificates = _manager.
ListCertificates
(StoreName.My, StoreLocation.CurrentUser, isValid: false);
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);