diff --git a/Utils/src/ServerCertificateValidator.cs b/Utils/src/ServerCertificateValidator.cs index 55a9634d6..58a3f81dd 100644 --- a/Utils/src/ServerCertificateValidator.cs +++ b/Utils/src/ServerCertificateValidator.cs @@ -83,8 +83,15 @@ public static RemoteCertificateValidationCallback ValidationCallback(ILogger } else { - logger.LogInformation("SSL validation failed with errors: {sslPolicyErrors}", + logger.LogInformation("Certificate untrusted: {sslPolicyErrors}", sslPolicyErrors); + logger.LogInformation("Certificate thumbprint: {thumbprint}", + cert.Thumbprint); + logger.LogInformation("Authority thumbprint: {thumbprint}", + authority.Thumbprint); + logger.LogInformation("Chain thumbprints: {thumbprints}", + string.Join(", ", + chain.ChainElements.Select(x => x.Certificate.Thumbprint))); } return isTrusted;