-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SSL certificates #913
Comments
I would be quite cautious exposing the whole options, but from the description I understand you need it primarily for testing an API with complex SSL setup - certs, keys, etc. This would be related to #323. Let me rename your issue to "Support SSL certificates". |
Yes, you are right about the exposing of the whole options object. |
I just added this.configuration.http.rejectUnauthorized = false, in the following code block, to dredd.js and that unblocked me. Figured I'd drop this in here for others running into this challenge.
|
You don’t need change code, just set env variable as dirty hack.
|
The
request
library used to query the server allows to specify several client options. Some of them are related to the client certificate, the self-signed certificate validation and others.It is possible to make this option configurable from the hook script or from the command line?
Possible dirty solution
In order to use your applicaiton with a http server with self signed certificate I added this line in the file
lib/transaction-runner.js
:With this change I can now configure the
request
library options from my hook file:The text was updated successfully, but these errors were encountered: