C#: Create certificate from string, rather than file

This commit is contained in:
Michael B. Gale
2024-12-06 13:13:41 +00:00
parent 0d206bd0bb
commit 32d757f65c

View File

@@ -66,7 +66,7 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
logger.LogInfo($"Stored Dependabot proxy certificate at {result.CertificatePath}");
result.Certificate = new X509Certificate2(result.CertificatePath);
result.Certificate = X509Certificate2.CreateFromPem(cert);
}
return result;