31 references to EnsureCertificateResult
dotnet-dev-certs (31)
Program.cs (12)
394
var
result = manager.EnsureAspNetCoreHttpsDevelopmentCertificate(
405
case
EnsureCertificateResult
.Succeeded:
412
case
EnsureCertificateResult
.ValidCertificatePresent:
419
case
EnsureCertificateResult
.ErrorCreatingTheCertificate:
422
case
EnsureCertificateResult
.ErrorSavingTheCertificateIntoTheCurrentUserPersonalStore:
425
case
EnsureCertificateResult
.ErrorExportingTheCertificate:
428
case
EnsureCertificateResult
.ErrorExportingTheCertificateToNonExistentDirectory:
432
case
EnsureCertificateResult
.PartiallyFailedToTrustTheCertificate:
436
case
EnsureCertificateResult
.FailedToTrustTheCertificate:
439
case
EnsureCertificateResult
.UserCancelledTrustStep:
442
case
EnsureCertificateResult
.ExistingHttpsCertificateTrusted:
445
case
EnsureCertificateResult
.NewHttpsCertificateTrusted:
src\Shared\CertificateGeneration\CertificateManager.cs (19)
184
public
EnsureCertificateResult
EnsureAspNetCoreHttpsDevelopmentCertificate(
194
var
result =
EnsureCertificateResult
.Succeeded;
241
result =
EnsureCertificateResult
.FailedToMakeKeyAccessible;
262
result =
EnsureCertificateResult
.ValidCertificatePresent;
280
result =
EnsureCertificateResult
.ErrorCreatingTheCertificate;
292
result =
EnsureCertificateResult
.ErrorSavingTheCertificateIntoTheCurrentUserPersonalStore;
317
result =
EnsureCertificateResult
.FailedToMakeKeyAccessible;
331
result =
EnsureCertificateResult
.ErrorExportingTheCertificateToNonExistentDirectory;
345
result = result !=
EnsureCertificateResult
.Succeeded && result !=
EnsureCertificateResult
.ValidCertificatePresent ?
347
EnsureCertificateResult
.ErrorExportingTheCertificate;
364
result =
EnsureCertificateResult
.PartiallyFailedToTrustTheCertificate;
368
result =
EnsureCertificateResult
.FailedToTrustTheCertificate;
374
result =
EnsureCertificateResult
.UserCancelledTrustStep;
379
result =
EnsureCertificateResult
.FailedToTrustTheCertificate;
383
if (result ==
EnsureCertificateResult
.ValidCertificatePresent)
385
result =
EnsureCertificateResult
.ExistingHttpsCertificateTrusted;
389
result =
EnsureCertificateResult
.NewHttpsCertificateTrusted;