1 write to Log
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
111Log = new CertificateManagerLogger(logger);
157 references to Log
aspire (157)
Certificates\CertificateGeneration\CertificateManager.cs (73)
139Log.ListCertificatesStart(location, storeName); 150if (Log.IsEnabled()) 152Log.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates)); 159Log.CheckCertificatesValidity(); 166if (Log.IsEnabled()) 169Log.DescribeValidCertificates(ToCertificateDescription(validCertificates)); 170Log.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates)); 178if (Log.IsEnabled()) 181Log.DescribeMinimumVersionCertificates(ToCertificateDescription(validMinVersionCertificates)); 182Log.DescribeBelowMinimumVersionCertificates(ToCertificateDescription(belowMinimumVersionCertificates)); 196Log.ListCertificatesEnd(); 201if (Log.IsEnabled()) 203Log.ListCertificatesError(e.ToString()); 306if (Log.IsEnabled()) 309Log.FilteredCertificates(ToCertificateDescription(filteredCertificates)); 310Log.ExcludedCertificates(ToCertificateDescription(excludedCertificates)); 336if (Log.IsEnabled()) 338Log.CorrectCertificateStateStart(GetDescription(candidate)); 341Log.CorrectCertificateStateEnd(); 345if (Log.IsEnabled()) 347Log.CorrectCertificateStateError(e.ToString()); 361if (Log.IsEnabled()) 363Log.ValidCertificatesFound(ToCertificateDescription(certificates)); 366if (Log.IsEnabled()) 368Log.SelectedCertificate(GetDescription(certificate)); 375Log.NoValidCertificatesFound(); 378Log.CreateDevelopmentCertificateStart(); 384if (Log.IsEnabled()) 386Log.CreateDevelopmentCertificateError(e.ToString()); 392Log.CreateDevelopmentCertificateEnd(); 400Log.SaveCertificateInStoreError(e.ToString()); 414if (Log.IsEnabled()) 416Log.CorrectCertificateStateStart(GetDescription(certificate)); 419Log.CorrectCertificateStateEnd(); 423if (Log.IsEnabled()) 425Log.CorrectCertificateStateError(e.ToString()); 453if (Log.IsEnabled()) 455Log.ExportCertificateError(e.ToString()); 541Log.ImportCertificateMissingFile(certificatePath); 548if (Log.IsEnabled()) 550Log.ImportCertificateExistingCertificates(ToCertificateDescription(certificates)); 560Log.LoadCertificateStart(certificatePath); 562if (Log.IsEnabled()) 564Log.LoadCertificateEnd(GetDescription(certificate)); 569if (Log.IsEnabled()) 571Log.LoadCertificateError(e.ToString()); 581if (Log.IsEnabled()) 583Log.NoHttpsDevelopmentCertificate(GetDescription(certificate)); 594if (Log.IsEnabled()) 596Log.SaveCertificateInStoreError(e.ToString()); 614if (Log.IsEnabled()) 617Log.FilteredCertificates(ToCertificateDescription(filteredCertificates)); 618Log.ExcludedCertificates(ToCertificateDescription(excludedCertificates)); 650if (Log.IsEnabled()) 652Log.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey); 657Log.NoPasswordForCertificate(); 663Log.CreateExportCertificateDirectory(targetDirectoryPath); 731Log.ExportCertificateError(e.ToString()); 741Log.WriteCertificateToDisk(path); 754Log.WriteCertificateToDiskError(ex.ToString()); 769Log.WritePemKeyToDisk(keyPath); 782Log.WritePemKeyToDiskError(ex.ToString()); 862if (Log.IsEnabled()) 864Log.SaveCertificateInStoreStart(GetDescription(certificate), name, location); 869Log.SaveCertificateInStoreEnd(); 877if (Log.IsEnabled()) 879Log.TrustCertificateStart(GetDescription(certificate)); 882Log.TrustCertificateEnd(); 887Log.TrustCertificateError(ex.ToString()); 1006if (Log.IsEnabled()) 1008Log.RemoveCertificateFromUserStoreStart(GetDescription(certificate)); 1011Log.RemoveCertificateFromUserStoreEnd(); 1015Log.RemoveCertificateFromUserStoreError(ex.ToString());
Certificates\CertificateGeneration\MacOSCertificateManager.cs (26)
102Log.MacOSCertificateAlreadyTrusted(); 112if (Log.IsEnabled()) 114Log.MacOSTrustCommandStart($"{MacOSTrustCertificateCommandLine} {s_macOSTrustCertificateCommandLineArguments}{tmpFile}"); 119Log.MacOSTrustCommandError(exitStatus.ExitCode); 123Log.MacOSTrustCommandEnd(); 163Log.MacOSAddCertificateToUserProfileDirError(candidate.Thumbprint, ex.Message); 220Log.MacOSRemoveCertificateTrustRuleStart(GetDescription(certificate)); 237Log.MacOSRemoveCertificateTrustRuleError(processExitStatus.ExitCode); 240Log.MacOSRemoveCertificateTrustRuleEnd(); 270if (Log.IsEnabled()) 272Log.MacOSRemoveCertificateFromKeyChainStart(keychain, GetDescription(certificate)); 279Log.MacOSRemoveCertificateFromKeyChainError(exitCode); 285Log.MacOSRemoveCertificateFromKeyChainEnd(); 329if (Log.IsEnabled()) 331Log.MacOSAddCertificateToUserProfileDirStart(s_macOSUserKeychain, GetDescription(certificate)); 341Log.MacOSAddCertificateToUserProfileDirError(certificate.Thumbprint, ex.Message); 344Log.MacOSAddCertificateToKeyChainEnd(); 345Log.MacOSAddCertificateToUserProfileDirEnd(); 367if (Log.IsEnabled()) 369Log.MacOSAddCertificateToKeyChainStart(s_macOSUserKeychain, GetDescription(certificate)); 377Log.MacOSAddCertificateToKeyChainError(exitCode, processOutput.StandardOutput + processOutput.StandardError); 381Log.MacOSAddCertificateToKeyChainEnd(); 494Log.MacOSDiskStoreDoesNotExist(); 508Log.MacOSFileIsNotAValidCertificate(file); 529Log.MacOSRemoveCertificateFromUserProfileDirError(certificate.Thumbprint, ex.Message); 546Log.DirectoryPermissionsNotSecure(dirInfo.FullName);
Certificates\CertificateGeneration\UnixCertificateManager.cs (51)
84Log.UnixOpenSslCertificateDirectoryOverrideIgnored(OpenSslCertDirectoryOverrideVariableName); 103Log.UnixNotTrustedByDotnet(); 125Log.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName); 160Log.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName); 171Log.UnixMissingCertUtilCommand(CertificateHelpers.CertUtilCommand); 185Log.UnixNotTrustedByNss(nssDb.Path, nssDb.BrowserFamily); 251Log.UnixDotnetTrustSucceeded(); 257Log.UnixDotnetTrustException(ex.Message); 282Log.UnixNotOverwritingCertificate(certPath); 291Log.UnixNotOverwritingCertificate(certPath); 317Log.UnixMissingOpenSslCommand(OpenSslCommand); 322Log.UnixOpenSslTrustSucceeded(); 328Log.UnixOpenSslTrustFailed(); 338Log.UnixMissingCertUtilCommand(CertificateHelpers.CertUtilCommand); 348Log.UnixNssDbTrustSucceeded(nssDb.Path); 355Log.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.BrowserFamily); 361Log.UnixNssDbTrustFailed(nssDb.Path, nssDb.BrowserFamily); 372Log.UnixTrustPartiallySucceeded(); 421Log.UnixOpenSslCertificateDirectoryAlreadyConfigured(prettyCertDir, OpenSslCertificateDirectoryVariableName); 427Log.UnixSuggestAppendingToEnvironmentVariable(prettyCertDir, OpenSslCertificateDirectoryVariableName); 433Log.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName); 438Log.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName); 452Log.WslWindowsTrustSucceeded(); 456Log.WslWindowsTrustFailed(); 462Log.WslWindowsTrustException(ex.Message); 487Log.UnixDotnetUntrustException(ex.Message); 514Log.UnixMissingOpenSslCommand(OpenSslCommand); 521Log.UnixOpenSslUntrustSucceeded(); 526Log.UnixOpenSslUntrustFailed(); 532Log.UnixOpenSslUntrustSkipped(certPath); 541Log.UnixMissingCertUtilCommand(CertificateHelpers.CertUtilCommand); 549Log.UnixNssDbUntrustSucceeded(nssDb.Path); 553Log.UnixNssDbUntrustFailed(nssDb.Path); 580Log.DirectoryPermissionsNotSecure(dirInfo.FullName); 699Log.UnixNssDbCheckException(nssDb.Path, ex.Message); 717Log.UnixNssDbAdditionException(nssDb.Path, ex.Message); 739Log.UnixNssDbRemovalException(nssDb.Path, ex.Message); 783Log.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName); 799Log.UnixCertificateFileDeletionException(certPath, ex.Message); 848Log.UnixOpenSslVersionFailed(); 855Log.UnixOpenSslVersionParsingFailed(); 864Log.UnixOpenSslVersionException(ex.Message); 889Log.UnixOpenSslHashFailed(certificatePath); 898Log.UnixOpenSslHashException(certificatePath, ex.Message); 966Log.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions); 973Log.UnixOpenSslRehashException(ex.Message); 1038manager.Log.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName); 1084manager.Log.UnixNssDbOverridePresent(nssDbOverrideVariableName); 1129manager.Log.UnixNssDbDoesNotExist(nssDbPath, nssDbOverrideVariableName); 1254manager.Log.UnixNoFirefoxProfilesFound(firefoxDirectory); 1261manager.Log.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (7)
83Log.WindowsCertificateAlreadyTrusted(); 89Log.WindowsAddCertificateToRootStore(); 98Log.WindowsCertificateTrustCanceled(); 105Log.WindowsRemoveCertificateFromRootStoreStart(); 116Log.WindowsRemoveCertificateFromRootStoreNotFound(); 119Log.WindowsRemoveCertificateFromRootStoreEnd(); 165Log.DirectoryPermissionsNotSecure(dirInfo.FullName);