Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Dredd error with self-signed certificates #195

Open
LYDE1234 opened this issue May 7, 2021 · 2 comments
Open

Dredd error with self-signed certificates #195

LYDE1234 opened this issue May 7, 2021 · 2 comments
Assignees
Projects

Comments

@LYDE1234
Copy link

LYDE1234 commented May 7, 2021

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?

@stishkin
Copy link
Contributor

stishkin commented May 8, 2021

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

apiaryio/dredd#913
apiaryio/dredd#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 stishkin self-assigned this May 20, 2021
@stishkin
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
raft
To do
Development

No branches or pull requests

2 participants