rest-api-fuzz-testing icon indicating copy to clipboard operation
rest-api-fuzz-testing copied to clipboard

Dredd error with self-signed certificates

Open LYDE1234 opened this issue 3 years ago • 2 comments

We use a self-signed certificate during development and get this when running Dredd:

Error: Error: unable to verify the first certificate Stacktrace: Error: unable to verify the first certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:932:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)

is there a way to work around this either via RAFT or Dredd itself?

LYDE1234 avatar May 07 '21 23:05 LYDE1234

Seems like Dredd has open issues related to this. Once those are addressed, raft will be able to use that.

https://github.com/apiaryio/dredd/issues/913 https://github.com/apiaryio/dredd/issues/323

There might be an option to add the certificate to the certificate store on the container (we did that with RESTler). I'll investigate if same solution would work for Dredd

stishkin avatar May 08 '21 23:05 stishkin

@LYDE1234 - does disabling certificate validation altogether would work for you ?

stishkin avatar May 21 '21 17:05 stishkin