treasure-data / td

CUI Interface
https://toolbelt.treasuredata.com
49 stars 26 forks source link

No option for disabling certificate verification #256

Open mickeey2525 opened 2 years ago

mickeey2525 commented 2 years ago

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 commented 1 year ago

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.