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