1 write to Log
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
109
Log
= new CertificateManagerLogger(logger);
157 references to Log
aspire (157)
Certificates\CertificateGeneration\CertificateManager.cs (73)
137
Log
.ListCertificatesStart(location, storeName);
148
if (
Log
.IsEnabled())
150
Log
.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates));
157
Log
.CheckCertificatesValidity();
164
if (
Log
.IsEnabled())
167
Log
.DescribeValidCertificates(ToCertificateDescription(validCertificates));
168
Log
.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates));
176
if (
Log
.IsEnabled())
179
Log
.DescribeMinimumVersionCertificates(ToCertificateDescription(validMinVersionCertificates));
180
Log
.DescribeBelowMinimumVersionCertificates(ToCertificateDescription(belowMinimumVersionCertificates));
194
Log
.ListCertificatesEnd();
199
if (
Log
.IsEnabled())
201
Log
.ListCertificatesError(e.ToString());
304
if (
Log
.IsEnabled())
307
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
308
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
334
if (
Log
.IsEnabled())
336
Log
.CorrectCertificateStateStart(GetDescription(candidate));
339
Log
.CorrectCertificateStateEnd();
343
if (
Log
.IsEnabled())
345
Log
.CorrectCertificateStateError(e.ToString());
359
if (
Log
.IsEnabled())
361
Log
.ValidCertificatesFound(ToCertificateDescription(certificates));
364
if (
Log
.IsEnabled())
366
Log
.SelectedCertificate(GetDescription(certificate));
373
Log
.NoValidCertificatesFound();
376
Log
.CreateDevelopmentCertificateStart();
382
if (
Log
.IsEnabled())
384
Log
.CreateDevelopmentCertificateError(e.ToString());
390
Log
.CreateDevelopmentCertificateEnd();
398
Log
.SaveCertificateInStoreError(e.ToString());
412
if (
Log
.IsEnabled())
414
Log
.CorrectCertificateStateStart(GetDescription(certificate));
417
Log
.CorrectCertificateStateEnd();
421
if (
Log
.IsEnabled())
423
Log
.CorrectCertificateStateError(e.ToString());
451
if (
Log
.IsEnabled())
453
Log
.ExportCertificateError(e.ToString());
539
Log
.ImportCertificateMissingFile(certificatePath);
546
if (
Log
.IsEnabled())
548
Log
.ImportCertificateExistingCertificates(ToCertificateDescription(certificates));
558
Log
.LoadCertificateStart(certificatePath);
560
if (
Log
.IsEnabled())
562
Log
.LoadCertificateEnd(GetDescription(certificate));
567
if (
Log
.IsEnabled())
569
Log
.LoadCertificateError(e.ToString());
579
if (
Log
.IsEnabled())
581
Log
.NoHttpsDevelopmentCertificate(GetDescription(certificate));
592
if (
Log
.IsEnabled())
594
Log
.SaveCertificateInStoreError(e.ToString());
612
if (
Log
.IsEnabled())
615
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
616
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
648
if (
Log
.IsEnabled())
650
Log
.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey);
655
Log
.NoPasswordForCertificate();
661
Log
.CreateExportCertificateDirectory(targetDirectoryPath);
729
Log
.ExportCertificateError(e.ToString());
739
Log
.WriteCertificateToDisk(path);
752
Log
.WriteCertificateToDiskError(ex.ToString());
767
Log
.WritePemKeyToDisk(keyPath);
780
Log
.WritePemKeyToDiskError(ex.ToString());
860
if (
Log
.IsEnabled())
862
Log
.SaveCertificateInStoreStart(GetDescription(certificate), name, location);
867
Log
.SaveCertificateInStoreEnd();
875
if (
Log
.IsEnabled())
877
Log
.TrustCertificateStart(GetDescription(certificate));
880
Log
.TrustCertificateEnd();
885
Log
.TrustCertificateError(ex.ToString());
1004
if (
Log
.IsEnabled())
1006
Log
.RemoveCertificateFromUserStoreStart(GetDescription(certificate));
1009
Log
.RemoveCertificateFromUserStoreEnd();
1013
Log
.RemoveCertificateFromUserStoreError(ex.ToString());
Certificates\CertificateGeneration\MacOSCertificateManager.cs (26)
91
Log
.MacOSCertificateAlreadyTrusted();
100
if (
Log
.IsEnabled())
102
Log
.MacOSTrustCommandStart($"{MacOSTrustCertificateCommandLine} {s_macOSTrustCertificateCommandLineArguments}{tmpFile}");
109
Log
.MacOSTrustCommandError(process.ExitCode);
113
Log
.MacOSTrustCommandEnd();
146
Log
.MacOSAddCertificateToUserProfileDirError(candidate.Thumbprint, ex.Message);
200
Log
.MacOSRemoveCertificateTrustRuleStart(GetDescription(certificate));
219
Log
.MacOSRemoveCertificateTrustRuleError(process.ExitCode);
222
Log
.MacOSRemoveCertificateTrustRuleEnd();
252
if (
Log
.IsEnabled())
254
Log
.MacOSRemoveCertificateFromKeyChainStart(keychain, GetDescription(certificate));
264
Log
.MacOSRemoveCertificateFromKeyChainError(process.ExitCode);
271
Log
.MacOSRemoveCertificateFromKeyChainEnd();
315
if (
Log
.IsEnabled())
317
Log
.MacOSAddCertificateToUserProfileDirStart(s_macOSUserKeychain, GetDescription(certificate));
327
Log
.MacOSAddCertificateToUserProfileDirError(certificate.Thumbprint, ex.Message);
330
Log
.MacOSAddCertificateToKeyChainEnd();
331
Log
.MacOSAddCertificateToUserProfileDirEnd();
353
if (
Log
.IsEnabled())
355
Log
.MacOSAddCertificateToKeyChainStart(s_macOSUserKeychain, GetDescription(certificate));
365
Log
.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
370
Log
.MacOSAddCertificateToKeyChainEnd();
436
Log
.MacOSDiskStoreDoesNotExist();
450
Log
.MacOSFileIsNotAValidCertificate(file);
471
Log
.MacOSRemoveCertificateFromUserProfileDirError(certificate.Thumbprint, ex.Message);
488
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
Certificates\CertificateGeneration\UnixCertificateManager.cs (51)
64
Log
.UnixOpenSslCertificateDirectoryOverrideIgnored(OpenSslCertDirectoryOverrideVariableName);
83
Log
.UnixNotTrustedByDotnet();
105
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
132
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
143
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
157
Log
.UnixNotTrustedByNss(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
222
Log
.UnixDotnetTrustSucceeded();
228
Log
.UnixDotnetTrustException(ex.Message);
253
Log
.UnixNotOverwritingCertificate(certPath);
262
Log
.UnixNotOverwritingCertificate(certPath);
288
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
293
Log
.UnixOpenSslTrustSucceeded();
299
Log
.UnixOpenSslTrustFailed();
309
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
319
Log
.UnixNssDbTrustSucceeded(nssDb.Path);
326
Log
.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
332
Log
.UnixNssDbTrustFailed(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
343
Log
.UnixTrustPartiallySucceeded();
392
Log
.UnixOpenSslCertificateDirectoryAlreadyConfigured(prettyCertDir, OpenSslCertificateDirectoryVariableName);
398
Log
.UnixSuggestAppendingToEnvironmentVariable(prettyCertDir, OpenSslCertificateDirectoryVariableName);
404
Log
.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName);
409
Log
.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName);
423
Log
.WslWindowsTrustSucceeded();
427
Log
.WslWindowsTrustFailed();
433
Log
.WslWindowsTrustException(ex.Message);
458
Log
.UnixDotnetUntrustException(ex.Message);
485
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
490
Log
.UnixOpenSslUntrustSucceeded();
495
Log
.UnixOpenSslUntrustFailed();
501
Log
.UnixOpenSslUntrustSkipped(certPath);
510
Log
.UnixMissingCertUtilCommand(CertUtilCommand);
518
Log
.UnixNssDbUntrustSucceeded(nssDb.Path);
522
Log
.UnixNssDbUntrustFailed(nssDb.Path);
548
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
723
Log
.UnixNssDbCheckException(nssDb.Path, ex.Message);
752
Log
.UnixNssDbAdditionException(nssDb.Path, ex.Message);
782
Log
.UnixNssDbRemovalException(nssDb.Path, ex.Message);
796
Log
.UnixNoFirefoxProfilesFound(firefoxDirectory);
802
Log
.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message);
812
Log
.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName);
828
Log
.UnixCertificateFileDeletionException(certPath, ex.Message);
844
Log
.UnixNssDbOverridePresent(NssDbOverrideVariableName);
854
Log
.UnixNssDbDoesNotExist(nssDb, NssDbOverrideVariableName);
882
Log
.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName);
948
Log
.UnixOpenSslVersionFailed();
955
Log
.UnixOpenSslVersionParsingFailed();
964
Log
.UnixOpenSslVersionException(ex.Message);
992
Log
.UnixOpenSslHashFailed(certificatePath);
1001
Log
.UnixOpenSslHashException(certificatePath, ex.Message);
1069
Log
.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
1076
Log
.UnixOpenSslRehashException(ex.Message);
Certificates\CertificateGeneration\WindowsCertificateManager.cs (7)
79
Log
.WindowsCertificateAlreadyTrusted();
85
Log
.WindowsAddCertificateToRootStore();
94
Log
.WindowsCertificateTrustCanceled();
101
Log
.WindowsRemoveCertificateFromRootStoreStart();
112
Log
.WindowsRemoveCertificateFromRootStoreNotFound();
115
Log
.WindowsRemoveCertificateFromRootStoreEnd();
161
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);