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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
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)