1 write to Log
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
107Log = new CertificateManagerLogger(logger);
157 references to Log
aspire (157)
Certificates\CertificateGeneration\CertificateManager.cs (73)
135Log.ListCertificatesStart(location, storeName); 146if (Log.IsEnabled()) 148Log.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates)); 155Log.CheckCertificatesValidity(); 162if (Log.IsEnabled()) 165Log.DescribeValidCertificates(ToCertificateDescription(validCertificates)); 166Log.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates)); 174if (Log.IsEnabled()) 177Log.DescribeMinimumVersionCertificates(ToCertificateDescription(validMinVersionCertificates)); 178Log.DescribeBelowMinimumVersionCertificates(ToCertificateDescription(belowMinimumVersionCertificates)); 192Log.ListCertificatesEnd(); 197if (Log.IsEnabled()) 199Log.ListCertificatesError(e.ToString()); 302if (Log.IsEnabled()) 305Log.FilteredCertificates(ToCertificateDescription(filteredCertificates)); 306Log.ExcludedCertificates(ToCertificateDescription(excludedCertificates)); 332if (Log.IsEnabled()) 334Log.CorrectCertificateStateStart(GetDescription(candidate)); 337Log.CorrectCertificateStateEnd(); 341if (Log.IsEnabled()) 343Log.CorrectCertificateStateError(e.ToString()); 357if (Log.IsEnabled()) 359Log.ValidCertificatesFound(ToCertificateDescription(certificates)); 362if (Log.IsEnabled()) 364Log.SelectedCertificate(GetDescription(certificate)); 371Log.NoValidCertificatesFound(); 374Log.CreateDevelopmentCertificateStart(); 380if (Log.IsEnabled()) 382Log.CreateDevelopmentCertificateError(e.ToString()); 388Log.CreateDevelopmentCertificateEnd(); 396Log.SaveCertificateInStoreError(e.ToString()); 410if (Log.IsEnabled()) 412Log.CorrectCertificateStateStart(GetDescription(certificate)); 415Log.CorrectCertificateStateEnd(); 419if (Log.IsEnabled()) 421Log.CorrectCertificateStateError(e.ToString()); 449if (Log.IsEnabled()) 451Log.ExportCertificateError(e.ToString()); 537Log.ImportCertificateMissingFile(certificatePath); 544if (Log.IsEnabled()) 546Log.ImportCertificateExistingCertificates(ToCertificateDescription(certificates)); 556Log.LoadCertificateStart(certificatePath); 558if (Log.IsEnabled()) 560Log.LoadCertificateEnd(GetDescription(certificate)); 565if (Log.IsEnabled()) 567Log.LoadCertificateError(e.ToString()); 577if (Log.IsEnabled()) 579Log.NoHttpsDevelopmentCertificate(GetDescription(certificate)); 590if (Log.IsEnabled()) 592Log.SaveCertificateInStoreError(e.ToString()); 610if (Log.IsEnabled()) 613Log.FilteredCertificates(ToCertificateDescription(filteredCertificates)); 614Log.ExcludedCertificates(ToCertificateDescription(excludedCertificates)); 646if (Log.IsEnabled()) 648Log.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey); 653Log.NoPasswordForCertificate(); 659Log.CreateExportCertificateDirectory(targetDirectoryPath); 727Log.ExportCertificateError(e.ToString()); 737Log.WriteCertificateToDisk(path); 750Log.WriteCertificateToDiskError(ex.ToString()); 765Log.WritePemKeyToDisk(keyPath); 778Log.WritePemKeyToDiskError(ex.ToString()); 858if (Log.IsEnabled()) 860Log.SaveCertificateInStoreStart(GetDescription(certificate), name, location); 865Log.SaveCertificateInStoreEnd(); 873if (Log.IsEnabled()) 875Log.TrustCertificateStart(GetDescription(certificate)); 878Log.TrustCertificateEnd(); 883Log.TrustCertificateError(ex.ToString()); 947if (Log.IsEnabled()) 949Log.RemoveCertificateFromUserStoreStart(GetDescription(certificate)); 952Log.RemoveCertificateFromUserStoreEnd(); 956Log.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);