Hi, Production code I'm trying to write junit 5 wi...
# help
i
Hi, Production code I'm trying to write junit 5 with WireMock test for is calling ssl secured third party rest api through http proxy specified. I configured 2 WireMock instances. One to simulate proxy and another for target system. However I'm getting bad certificate or broken pipe exception in the log. As far as I investigated looks like the certificate sent by the client is not reaching target system wiremock. Couldn't find an example of http to https proxing setup in the instructions. Maybe someone had similar use case and can provide one? Thanks a lot.
t
So you want to use a client TLS certificate to authenticate against a target host via a WireMock proxy? i.e. A ---> WireMock Proxy ---> B where the cert passed to A will ultimate be passed in the request to B?
i
Yes, correct.
t
OK, unfortunately that’s not possible at the moment. WireMock can require a client cert, but it can’t yet pass it on to a proxy target.
i
Thanks for the information
👍 1
Maybe it would be good to mention somewhere in documentation that if you are passing client certificate through wiremock proxy to target system to use it won't work as it is not supported.
t
Happy to merge a doc PR if you feel like creating one
i
Ok, will have a look how to do that
t