Giter Site home page Giter Site logo

Comments (9)

StefH avatar StefH commented on May 17, 2024

Hello @phillee007 , if you have time, can you do some testing with Proxy and Record and Save ?

from wiremock.net.

phillee007 avatar phillee007 commented on May 17, 2024

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.

StefH avatar StefH commented on May 17, 2024

What kind of certificate would you be using ?
Is that a X509Certificate2 ?

from wiremock.net.

phillee007 avatar phillee007 commented on May 17, 2024

from wiremock.net.

StefH avatar StefH commented on May 17, 2024

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.

phillee007 avatar phillee007 commented on May 17, 2024

from wiremock.net.

StefH avatar StefH commented on May 17, 2024

Any luck?

from wiremock.net.

phillee007 avatar phillee007 commented on May 17, 2024

from wiremock.net.

StefH avatar StefH commented on May 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.