wiremock / wiremock/WireMock.Net
Client certificate authentication works with .NET 8 and fails with .NET 9
Open
@StefH is already working on this.
Since Jan 3, 2026.
bug
- Dominant language
- C#
- Stars
- 1.7k
- Forks
- 240
- Avg merge
- 5d 12h
- Merged PRs (30d)
- 2
Description
Describe the bug
I'm using the following server settings:
_mockSignPathApi = WireMockServer.Start(
new WireMockServerSettings
{
Port = 8888,
ClientCertificateMode = ClientCertificateMode.AllowCertificate,
AcceptAnyClientCertificate = true,
UseSSL = true
});
and use your own client_cert.pfx from your test suite as client certificate. In .NET 8 this set up works, in .NET 9 this fails (i.e, the request fails, I don't even come to the point where I could assert whether it's there).
Expected behavior:
It should work with .NET 9 too.
Other related info
Newest WireMock.NET version.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.