Add client certificate authentication #19

Closed
opened 2025-12-29 14:21:05 +01:00 by adam · 5 comments
Owner

Originally created by @phillee007 on GitHub (Feb 3, 2017).

Originally assigned to: @StefH on GitHub.

Is it possible to add this functionality as well? :-)

Originally created by @phillee007 on GitHub (Feb 3, 2017). Originally assigned to: @StefH on GitHub. Is it possible to add this functionality as well? :-)
adam added the feature label 2025-12-29 14:21:05 +01:00
adam closed this issue 2025-12-29 14:21:05 +01:00
Author
Owner

@StefH commented on GitHub (Feb 3, 2017):

I don't know if this is easy. Let me think about this.

@StefH commented on GitHub (Feb 3, 2017): I don't know if this is easy. Let me think about this.
Author
Owner

@phillee007 commented on GitHub (Feb 3, 2017):

No problem. We have a number of calls to services that require client certs
for auth, so I figured the stub service might need the same. l I guess we
could turn it off when talking to stub endpoints though?

On 3/02/2017 8:15 PM, "Stef Heyenrath" notifications@github.com wrote:

I don't know if this is easy. Let me think about this.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/StefH/WireMock.Net/issues/20#issuecomment-277180340,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEEFo-aBHVxvMEUOwd-GqzHwgx8RY611ks5rYtP-gaJpZM4L17kE
.

@phillee007 commented on GitHub (Feb 3, 2017): No problem. We have a number of calls to services that require client certs for auth, so I figured the stub service might need the same. l I guess we could turn it off when talking to stub endpoints though? On 3/02/2017 8:15 PM, "Stef Heyenrath" <notifications@github.com> wrote: > I don't know if this is easy. Let me think about this. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/StefH/WireMock.Net/issues/20#issuecomment-277180340>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AEEFo-aBHVxvMEUOwd-GqzHwgx8RY611ks5rYtP-gaJpZM4L17kE> > . >
Author
Owner

@phillee007 commented on GitHub (Jun 10, 2017):

Have had a look & I'm not sure it's modelled quite right. Each request mapping gets its own settings for proxy url/cert filename (plus also needs password if specified), so there would be no need to specify them in the mock server general settings (or as command-line args) as they wouldn't be used.
I've cloned the repo & will try it out locally over the next week or so to see what i can do.

UPDATE:
Actually I can see the reason why there are both, but was confused at first.

I've made a few changes to get it working both ways, and will submit a PR within the next week or so

@phillee007 commented on GitHub (Jun 10, 2017): Have had a look & I'm not sure it's modelled quite right. Each request mapping gets its own settings for proxy url/cert filename (plus also needs password if specified), so there would be no need to specify them in the mock server general settings (or as command-line args) as they wouldn't be used. I've cloned the repo & will try it out locally over the next week or so to see what i can do. UPDATE: Actually I can see the reason why there are both, but was confused at first. - ProxyAndRecordSettings are used for record and playback right? Much like the --proxy-all setting described on http://wiremock.org/docs/record-playback/. I.e. proxy ALL requests to a single host - The individual response proxy settings are used for proxying specific responses, as described on http://wiremock.org/docs/proxying/ I've made a few changes to get it working both ways, and will submit a PR within the next week or so
Author
Owner

@billybraga commented on GitHub (Dec 8, 2022):

Was this ever done?

@billybraga commented on GitHub (Dec 8, 2022): Was this ever done?
Author
Owner

@StefH commented on GitHub (Dec 8, 2022):

Sorry.
No this is not implemented.

@StefH commented on GitHub (Dec 8, 2022): Sorry. No this is not implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#19