We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d74ba commit 197b7bfCopy full SHA for 197b7bf
src/EasySign/Bundle.cs
@@ -458,7 +458,12 @@ public X509Certificate2 GetCertificate(string certificateHash)
458
Logger.LogDebug("Reading certificate with hash {hash} from the bundle", certificateHash);
459
using var zip = OpenZipArchive();
460
var certData = ReadEntry(zip, certificateHash);
461
+
462
+#if NET9_0_OR_GREATER
463
+ certificate = X509CertificateLoader.LoadCertificate(certData);
464
+#else
465
certificate = new X509Certificate2(certData);
466
+#endif
467
468
if (IsReadOnly)
469
{
0 commit comments