Skip to content

Commit c8ccfe4

Browse files
committed
C#: Create certificate from string, rather than file
1 parent 653d68e commit c8ccfe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class DependabotProxy : IDisposable
6666

6767
logger.LogInfo($"Stored Dependabot proxy certificate at {result.CertificatePath}");
6868

69-
result.Certificate = new X509Certificate2(result.CertificatePath);
69+
result.Certificate = X509Certificate2.CreateFromPem(cert);
7070
}
7171

7272
return result;

0 commit comments

Comments
 (0)