-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to pass a X509Certificate2 to WithProxy() or specifiy certificate loading options #879
Comments
I think creating a third method with |
Can you try preview https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions |
Works like a charm =) |
@FlorianMeinschad |
Unfortunately, there is still no official NuGet version 1.16. That would be great, thank you! |
@FlorianMeinschad Sorry, I forgot to start the NuGet pipeline. It's running now... |
Is your feature request related to a problem? Please describe.
We would like to run our wiremock.net setup in a custom docker container.
If no mapping is found for a request, the request is proxied to our staging server, which needs client certificate authentication.
At the moment the WireMock.NET tries to load the certificate by thumbprint or subject name from StoreLocation.LocalMachine, which does not exists on unix and throws an error.
Describe the solution you'd like
The best possible solution for us would be a third method overload for WithProxy(), which accepts a X509Certificate2 as parameter. Then we would be able to load the certificate from a mapped docker volume.
Describe alternatives you've considered
Alternatively it would also be enough to be able to specify the certificate loading options (like the WireMockCertificateSettings class):
Thereby it would also be possible to load a certificate from a mapped docker volume or to specify the unix permitted store "CurrentUser".
Is your feature request supported by WireMock (java version)? Please provide details.
I think it's just an extension of the .NET project itself, no explicit relation to wiremock.
Additional context
Thanks in advance.
The text was updated successfully, but these errors were encountered: