Use X509CertificateLoader on .NET 9+ (#1543)

* Use X509CertificateLoader on .NET 9+

Preserve older-target certificate loading and add tests for
supported formats, passwords, and embedded certificates.

* !

* Potential fix for pull request finding 'Missed 'using' opportunity'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* enum

* namespace WireMock.Compatiblity;

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Stef HeyenrathandCopilot Autofix powered by AI authored and GitHub committed 2026-11-12 20:56:01 +01:00
1 parent 384c083a78
commit 22576eb539
5 files changed
+146 -22

No files matched your search

@@ -0,0 +1,10 @@
// Copyright © WireMock.Net
#if NETSTANDARD2_0
namespace WireMock.Compatiblity;
internal static class EnumCompat
{
public static TEnum Parse<TEnum>(string value) where TEnum : struct, Enum => (TEnum)Enum.Parse(typeof(TEnum), value);
}
#endif