Skip to content

Commit 86c6df5

Browse files
committed
C#: Log warning when chain or certificate is not provided in the validation.
1 parent 547af6c commit 86c6df5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ private bool IsFeedReachable(string feed, int timeoutMilliSeconds, int tryCount,
606606
{
607607
if (chain is null || cert is null)
608608
{
609+
logger.LogWarning("Certificate validation trivially failed due to missing chain or certificate.");
609610
return false;
610611
}
611612
chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust;

0 commit comments

Comments
 (0)