39 references to EnsureCertificateResult
Microsoft.AspNetCore.DeveloperCertificates.XPlat (19)
src\Shared\CertificateGeneration\CertificateManager.cs (19)
184public EnsureCertificateResult EnsureAspNetCoreHttpsDevelopmentCertificate( 194var result = EnsureCertificateResult.Succeeded; 241result = EnsureCertificateResult.FailedToMakeKeyAccessible; 262result = EnsureCertificateResult.ValidCertificatePresent; 280result = EnsureCertificateResult.ErrorCreatingTheCertificate; 292result = EnsureCertificateResult.ErrorSavingTheCertificateIntoTheCurrentUserPersonalStore; 317result = EnsureCertificateResult.FailedToMakeKeyAccessible; 331result = EnsureCertificateResult.ErrorExportingTheCertificateToNonExistentDirectory; 345result = result != EnsureCertificateResult.Succeeded && result != EnsureCertificateResult.ValidCertificatePresent ? 347EnsureCertificateResult.ErrorExportingTheCertificate; 364result = EnsureCertificateResult.PartiallyFailedToTrustTheCertificate; 368result = EnsureCertificateResult.FailedToTrustTheCertificate; 374result = EnsureCertificateResult.UserCancelledTrustStep; 379result = EnsureCertificateResult.FailedToTrustTheCertificate; 383if (result == EnsureCertificateResult.ValidCertificatePresent) 385result = EnsureCertificateResult.ExistingHttpsCertificateTrusted; 389result = EnsureCertificateResult.NewHttpsCertificateTrusted;
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (20)
CertificateManagerTests.cs (20)
46var result = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), CertificateName, trust: false, isInteractive: false); 139var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 145var result = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), CertificateName, trust: false, includePrivateKey: true, password: certificatePassword, isInteractive: false); 171var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 178var result = _manager 204var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 211var result = _manager 235var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 268var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 295var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 335var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 341var result = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), CertificateName, trust: false, includePrivateKey: true, password: null, keyExportFormat: CertificateKeyExportFormat.Pem, isInteractive: false); 366var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 372var result = _manager 386var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 404var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 423var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 440var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 458var creation = _manager.EnsureAspNetCoreHttpsDevelopmentCertificate(now, now.AddYears(1), path: null, trust: false, isInteractive: false); 501var result = _manager