gock icon indicating copy to clipboard operation
gock copied to clipboard

SSL/TLS mocked responses

Open rcaught opened this issue 8 years ago • 2 comments

Great package @h2non. Thanks for making it.

Question: Is it possible to mock custom SSL Certs in the mocked responses?

rcaught avatar Jan 17 '17 00:01 rcaught

That's not currently supported. Why would you need that?

gock does a runtime mockey patching, so no network L3, L4 or L7 are involved here, unless you explicitly enable the real networking mode.

h2non avatar Jan 17 '17 13:01 h2non

Makes sense.

I'm writing a tool that collects the status/health of various endpoints. One of the metrics is the health of the SSL Certificate. Was hoping to mock out different certificates of various expiration, etc.

rcaught avatar Jan 17 '17 23:01 rcaught