Comments (9)
Hello @phillee007 , if you have time, can you do some testing with Proxy and Record and Save ?
from wiremock.net.
Will have a try, although unfortunately all the real services we call require client certificates, so I'm not sure whether it will be possible. I saw a section on http://wiremock.org/docs/proxying/ about how to setup client certificate forwarding on java, but will have to do some reading to find out the .Net equivalent...
Have had a quick look at the code in HttpClientHelper, and I'm wondering if additional properties need to be added to the proxy settings class to enable, requests that proxy to thereal service to use a client certificate as specified by the client when initializing the proxying. E.g. assuming:
- client certificate X is required by real service A (e.g. https://realservice.com)
- client certificate X is in the machine store on the machine wiremock is running on
we need to tell wiremock that when proxying calls to realservice.com, it needs to read in certificate X from the cert store (most likely by providing a password also) and attach it when proxying the request. Alternatively, we could just read the client cert in as a byte array in the client, and tell wiremock to use that byte array when sending requests, thus not requiring wiremock to actually read the cert from the store.....
from wiremock.net.
What kind of certificate would you be using ?
Is that a X509Certificate2 ?
from wiremock.net.
from wiremock.net.
I've updated the code and added logic to provide X509Certificate2Filename
.
I'm not sure if this works, I'm unable to test this myself.
from wiremock.net.
from wiremock.net.
Any luck?
from wiremock.net.
from wiremock.net.
@phillee007
Closing for now, in case you have more time to investigate on this subject, please open a new issue.
from wiremock.net.
Related Issues (20)
- Reset resets only mappings and logentries, not scenarios. HOT 3
- Save mappings to files HOT 5
- How to get a Random Long? HOT 4
- Is it possible to use WireMock as a middleware? HOT 7
- Make mapping filenames more user friendly HOT 3
- [Admin API] Find a request that matched a given mapping HOT 14
- WithoutHeader fluent assertion HOT 6
- Modifying slightly the mocked response, seems to make the output be not parsable. HOT 5
- How to append request body properties for response templating? HOT 5
- WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 1) HOT 7
- WireMock.Net 1.5.46 is incompatible with TestContainers 3.7.0 (issue 2) HOT 3
- 422 Unprocessable Entity HOT 2
- Incorrectly encoded logger output HOT 10
- Is there a way to access templated data after transformation? HOT 3
- How does WithBody work with request matchers? HOT 5
- Save proxied requests during an XUnit integration test? HOT 7
- Wiremock.net (C#) how to get a PDF from a Request body (form-data ) HOT 2
- External Mapping Storage HOT 21
- Dynamic http status code? HOT 4
- Split WireMock into multiple nuget packages depending on features HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiremock.net.