1 write to Log
aspire (1)
Certificates\CertificateGeneration\CertificateManager.cs (1)
110
Log
= new CertificateManagerLogger(logger);
157 references to Log
aspire (157)
Certificates\CertificateGeneration\CertificateManager.cs (73)
138
Log
.ListCertificatesStart(location, storeName);
149
if (
Log
.IsEnabled())
151
Log
.DescribeFoundCertificates(ToCertificateDescription(matchingCertificates));
158
Log
.CheckCertificatesValidity();
165
if (
Log
.IsEnabled())
168
Log
.DescribeValidCertificates(ToCertificateDescription(validCertificates));
169
Log
.DescribeInvalidCertificates(ToCertificateDescription(invalidCertificates));
177
if (
Log
.IsEnabled())
180
Log
.DescribeMinimumVersionCertificates(ToCertificateDescription(validMinVersionCertificates));
181
Log
.DescribeBelowMinimumVersionCertificates(ToCertificateDescription(belowMinimumVersionCertificates));
195
Log
.ListCertificatesEnd();
200
if (
Log
.IsEnabled())
202
Log
.ListCertificatesError(e.ToString());
305
if (
Log
.IsEnabled())
308
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
309
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
335
if (
Log
.IsEnabled())
337
Log
.CorrectCertificateStateStart(GetDescription(candidate));
340
Log
.CorrectCertificateStateEnd();
344
if (
Log
.IsEnabled())
346
Log
.CorrectCertificateStateError(e.ToString());
360
if (
Log
.IsEnabled())
362
Log
.ValidCertificatesFound(ToCertificateDescription(certificates));
365
if (
Log
.IsEnabled())
367
Log
.SelectedCertificate(GetDescription(certificate));
374
Log
.NoValidCertificatesFound();
377
Log
.CreateDevelopmentCertificateStart();
383
if (
Log
.IsEnabled())
385
Log
.CreateDevelopmentCertificateError(e.ToString());
391
Log
.CreateDevelopmentCertificateEnd();
399
Log
.SaveCertificateInStoreError(e.ToString());
413
if (
Log
.IsEnabled())
415
Log
.CorrectCertificateStateStart(GetDescription(certificate));
418
Log
.CorrectCertificateStateEnd();
422
if (
Log
.IsEnabled())
424
Log
.CorrectCertificateStateError(e.ToString());
452
if (
Log
.IsEnabled())
454
Log
.ExportCertificateError(e.ToString());
540
Log
.ImportCertificateMissingFile(certificatePath);
547
if (
Log
.IsEnabled())
549
Log
.ImportCertificateExistingCertificates(ToCertificateDescription(certificates));
559
Log
.LoadCertificateStart(certificatePath);
561
if (
Log
.IsEnabled())
563
Log
.LoadCertificateEnd(GetDescription(certificate));
568
if (
Log
.IsEnabled())
570
Log
.LoadCertificateError(e.ToString());
580
if (
Log
.IsEnabled())
582
Log
.NoHttpsDevelopmentCertificate(GetDescription(certificate));
593
if (
Log
.IsEnabled())
595
Log
.SaveCertificateInStoreError(e.ToString());
613
if (
Log
.IsEnabled())
616
Log
.FilteredCertificates(ToCertificateDescription(filteredCertificates));
617
Log
.ExcludedCertificates(ToCertificateDescription(excludedCertificates));
649
if (
Log
.IsEnabled())
651
Log
.ExportCertificateStart(GetDescription(certificate), path, includePrivateKey);
656
Log
.NoPasswordForCertificate();
662
Log
.CreateExportCertificateDirectory(targetDirectoryPath);
730
Log
.ExportCertificateError(e.ToString());
740
Log
.WriteCertificateToDisk(path);
753
Log
.WriteCertificateToDiskError(ex.ToString());
768
Log
.WritePemKeyToDisk(keyPath);
781
Log
.WritePemKeyToDiskError(ex.ToString());
861
if (
Log
.IsEnabled())
863
Log
.SaveCertificateInStoreStart(GetDescription(certificate), name, location);
868
Log
.SaveCertificateInStoreEnd();
876
if (
Log
.IsEnabled())
878
Log
.TrustCertificateStart(GetDescription(certificate));
881
Log
.TrustCertificateEnd();
886
Log
.TrustCertificateError(ex.ToString());
1005
if (
Log
.IsEnabled())
1007
Log
.RemoveCertificateFromUserStoreStart(GetDescription(certificate));
1010
Log
.RemoveCertificateFromUserStoreEnd();
1014
Log
.RemoveCertificateFromUserStoreError(ex.ToString());
Certificates\CertificateGeneration\MacOSCertificateManager.cs (26)
102
Log
.MacOSCertificateAlreadyTrusted();
112
if (
Log
.IsEnabled())
114
Log
.MacOSTrustCommandStart($"{MacOSTrustCertificateCommandLine} {s_macOSTrustCertificateCommandLineArguments}{tmpFile}");
120
Log
.MacOSTrustCommandError(processResult.ExitCode);
124
Log
.MacOSTrustCommandEnd();
164
Log
.MacOSAddCertificateToUserProfileDirError(candidate.Thumbprint, ex.Message);
217
Log
.MacOSRemoveCertificateTrustRuleStart(GetDescription(certificate));
234
Log
.MacOSRemoveCertificateTrustRuleError(processResult.ExitCode);
237
Log
.MacOSRemoveCertificateTrustRuleEnd();
267
if (
Log
.IsEnabled())
269
Log
.MacOSRemoveCertificateFromKeyChainStart(keychain, GetDescription(certificate));
275
Log
.MacOSRemoveCertificateFromKeyChainError(processResult.ExitCode);
281
Log
.MacOSRemoveCertificateFromKeyChainEnd();
323
if (
Log
.IsEnabled())
325
Log
.MacOSAddCertificateToUserProfileDirStart(s_macOSUserKeychain, GetDescription(certificate));
335
Log
.MacOSAddCertificateToUserProfileDirError(certificate.Thumbprint, ex.Message);
338
Log
.MacOSAddCertificateToKeyChainEnd();
339
Log
.MacOSAddCertificateToUserProfileDirEnd();
361
if (
Log
.IsEnabled())
363
Log
.MacOSAddCertificateToKeyChainStart(s_macOSUserKeychain, GetDescription(certificate));
370
Log
.MacOSAddCertificateToKeyChainError(processResult.ExitCode, output);
374
Log
.MacOSAddCertificateToKeyChainEnd();
487
Log
.MacOSDiskStoreDoesNotExist();
501
Log
.MacOSFileIsNotAValidCertificate(file);
522
Log
.MacOSRemoveCertificateFromUserProfileDirError(certificate.Thumbprint, ex.Message);
539
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
Certificates\CertificateGeneration\UnixCertificateManager.cs (51)
80
Log
.UnixOpenSslCertificateDirectoryOverrideIgnored(OpenSslCertDirectoryOverrideVariableName);
99
Log
.UnixNotTrustedByDotnet();
121
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
156
Log
.UnixNotTrustedByOpenSsl(OpenSslCertificateDirectoryVariableName);
167
Log
.UnixMissingCertUtilCommand(CertificateHelpers.CertUtilCommand);
181
Log
.UnixNotTrustedByNss(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
247
Log
.UnixDotnetTrustSucceeded();
253
Log
.UnixDotnetTrustException(ex.Message);
278
Log
.UnixNotOverwritingCertificate(certPath);
287
Log
.UnixNotOverwritingCertificate(certPath);
313
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
318
Log
.UnixOpenSslTrustSucceeded();
324
Log
.UnixOpenSslTrustFailed();
334
Log
.UnixMissingCertUtilCommand(CertificateHelpers.CertUtilCommand);
344
Log
.UnixNssDbTrustSucceeded(nssDb.Path);
351
Log
.UnixNssDbTrustFailedWithProbableConflict(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
357
Log
.UnixNssDbTrustFailed(nssDb.Path, nssDb.IsFirefox ? BrowserFamilyFirefox : BrowserFamilyChromium);
368
Log
.UnixTrustPartiallySucceeded();
417
Log
.UnixOpenSslCertificateDirectoryAlreadyConfigured(prettyCertDir, OpenSslCertificateDirectoryVariableName);
423
Log
.UnixSuggestAppendingToEnvironmentVariable(prettyCertDir, OpenSslCertificateDirectoryVariableName);
429
Log
.UnixSuggestSettingEnvironmentVariable(prettyCertDir, Path.Combine(openSslDir, "certs"), OpenSslCertificateDirectoryVariableName);
434
Log
.UnixSuggestSettingEnvironmentVariableWithoutExample(prettyCertDir, OpenSslCertificateDirectoryVariableName);
448
Log
.WslWindowsTrustSucceeded();
452
Log
.WslWindowsTrustFailed();
458
Log
.WslWindowsTrustException(ex.Message);
483
Log
.UnixDotnetUntrustException(ex.Message);
510
Log
.UnixMissingOpenSslCommand(OpenSslCommand);
517
Log
.UnixOpenSslUntrustSucceeded();
522
Log
.UnixOpenSslUntrustFailed();
528
Log
.UnixOpenSslUntrustSkipped(certPath);
537
Log
.UnixMissingCertUtilCommand(CertificateHelpers.CertUtilCommand);
545
Log
.UnixNssDbUntrustSucceeded(nssDb.Path);
549
Log
.UnixNssDbUntrustFailed(nssDb.Path);
576
Log
.DirectoryPermissionsNotSecure(dirInfo.FullName);
722
Log
.UnixNssDbCheckException(nssDb.Path, ex.Message);
745
Log
.UnixNssDbAdditionException(nssDb.Path, ex.Message);
769
Log
.UnixNssDbRemovalException(nssDb.Path, ex.Message);
792
Log
.UnixNoFirefoxProfilesFound(firefoxDirectory);
798
Log
.UnixFirefoxProfileEnumerationException(firefoxDirectory, ex.Message);
808
Log
.UnixOpenSslCertificateDirectoryOverridePresent(OpenSslCertDirectoryOverrideVariableName);
824
Log
.UnixCertificateFileDeletionException(certPath, ex.Message);
840
Log
.UnixNssDbOverridePresent(NssDbOverrideVariableName);
850
Log
.UnixNssDbDoesNotExist(nssDb, NssDbOverrideVariableName);
878
Log
.UnixHomeDirectoryDoesNotExist(homeDirectory, Environment.UserName);
941
Log
.UnixOpenSslVersionFailed();
948
Log
.UnixOpenSslVersionParsingFailed();
957
Log
.UnixOpenSslVersionException(ex.Message);
982
Log
.UnixOpenSslHashFailed(certificatePath);
991
Log
.UnixOpenSslHashException(certificatePath, ex.Message);
1059
Log
.UnixOpenSslRehashTooManyHashes(cert.FullName, hash, MaxHashCollisions);
1066
Log
.UnixOpenSslRehashException(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);