mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
New feature: Record and Save #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @StefH on GitHub (May 5, 2017).
http://wiremock.org/docs/record-playback/
@StefH commented on GitHub (May 12, 2017):
Hello @phillee007 , if you have time, can you do some testing with Proxy and Record and Save ?
@phillee007 commented on GitHub (May 13, 2017):
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:
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.....
@StefH commented on GitHub (May 13, 2017):
What kind of certificate would you be using ?
Is that a X509Certificate2 ?
@phillee007 commented on GitHub (May 13, 2017):
Yep that's right
On 13/05/2017 11:13 PM, "Stef Heyenrath" notifications@github.com wrote:
@StefH commented on GitHub (May 16, 2017):
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.
@phillee007 commented on GitHub (May 16, 2017):
Thanks Stef. I'll give it a try and submit a PR if I need to change it :-)
On 17/05/2017 6:21 AM, "Stef Heyenrath" notifications@github.com wrote:
@StefH commented on GitHub (Jun 9, 2017):
Any luck?
@phillee007 commented on GitHub (Jun 9, 2017):
Not yet I'm afraid. Our testers took a while to get on board with the whole
concept of what wiremock actually does, so i had no spare time to test the
client cert stuff. I will in the next two weeks though :-)
On 10/06/2017 9:33 AM, "Stef Heyenrath" notifications@github.com wrote:
@StefH commented on GitHub (Nov 18, 2017):
@phillee007
Closing for now, in case you have more time to investigate on this subject, please open a new issue.