-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
New feature: Record and Save #27
Comments
Hello @phillee007 , if you have time, can you do some testing with Proxy and Record and Save ? |
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..... |
What kind of certificate would you be using ? |
Yep that's right
…On 13/05/2017 11:13 PM, "Stef Heyenrath" ***@***.***> wrote:
What kind of certificate would you be using ?
Is that a *X509Certificate2* ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEEFowf9en98ZPEp8ZX4cXt5tVUYw040ks5r5ZBXgaJpZM4NSOlv>
.
|
I've updated the code and added logic to provide I'm not sure if this works, I'm unable to test this myself. |
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" ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEEFowEM4jy9GeB7bcU9W97L9uxkrfDxks5r6ek0gaJpZM4NSOlv>
.
|
Any luck? |
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" ***@***.***> wrote:
Any luck?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEEFows6Bzc-X-sgKbYdZkLP8IjZ_rofks5sCbo0gaJpZM4NSOlv>
.
|
@phillee007 |
http://wiremock.org/docs/record-playback/
The text was updated successfully, but these errors were encountered: