Skip to content

Commit

Permalink
C#: Log warning when chain or certificate is not provided in the vali…
Browse files Browse the repository at this point in the history
…dation.
  • Loading branch information
michaelnebel committed Dec 10, 2024
1 parent 547af6c commit 86c6df5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ private bool IsFeedReachable(string feed, int timeoutMilliSeconds, int tryCount,
{
if (chain is null || cert is null)
{
logger.LogWarning("Certificate validation trivially failed due to missing chain or certificate.");
return false;
}
chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust;
Expand Down

0 comments on commit 86c6df5

Please sign in to comment.