Files
WireMock.Net-wiremock/test/WireMock.Net.Tests
Stef HeyenrathandCopilot Autofix powered by AI 22576eb539 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>
2026-11-12 20:56:01 +01:00
..
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-10-07 17:35:58 +02:00
2026-03-11 17:02:47 +01:00
2026-05-03 09:27:19 +02:00
2026-03-11 17:02:47 +01:00
2026-05-29 20:19:51 +02:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-11-11 07:57:54 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00

Creating a client certificate like client_cert.pfx

Follow the instructions to create a root certificate, then trust it and create a child certificate from it.

Since the root certificate of client_cert.pfx is obviously not trusted automatically by cloning this repo, the tests in WireMockServerTests.ClientCertificate.cs set WireMockServerSettings.AcceptAnyClientCertificate to true so that tests pass even if the device hasn't trusted the root of client_cert.pfx.