Skip to content
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

No option for disabling certificate verification #256

Open
mickeey2525 opened this issue May 25, 2022 · 1 comment
Open

No option for disabling certificate verification #256

mickeey2525 opened this issue May 25, 2022 · 1 comment

Comments

@mickeey2525
Copy link
Contributor

Users need to communicate with the Treasure Data site through Proxy servers, which return an invalid(mostly self-signed) certificate to the td toolbelt.
Unfortunately, td toolbelt does not have options to disable certificate verification. So users need to implement some tricks in scripts.

Error messages

Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed

Implementing that kind of option(disabling certificate verification) for those users is better.

@seonwook97
Copy link

seonwook97 commented Jul 25, 2023

Users need to communicate with the Treasure Data site through Proxy servers, which return an invalid(mostly self-signed) certificate to the td toolbelt. Unfortunately, td toolbelt does not have options to disable certificate verification. So users need to implement some tricks in scripts.

Error messages

Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed

Implementing that kind of option(disabling certificate verification) for those users is better.

Open the td.td file in the C:\Program Files (x86)\Treasure Data\bin path

require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

and add these two rows below the sentence require 'td/command/runner'

You can enter a value to bypass the authentication called.

When using the td wf command, add --disable-cert-validation to the end of the command to run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants