🖥

たとえばSSL関連のエラーが出た場合は --verbose する習慣をつけよう

2023/08/26に公開

エンジニアの実力は習慣で決まる。

--verbose しない場合

エラー番号しか分からず苦しむことになる。

[root@c7e7efa6aee5 /]# curl https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh
curl: (35) SSL connect error

--verbose した場合

詳細が表示され手がかりが掴める。

[root@c7e7efa6aee5 /]# curl --verbose https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh
* About to connect() to toolbelt.treasuredata.com port 443 (#0)
*   Trying 151.101.89.177... connected
* Connected to toolbelt.treasuredata.com (151.101.89.177) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12190
* Error in TLS handshake, trying SSLv3...
> GET /sh/install-ubuntu-xenial-td-agent2.sh HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.15.3 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: toolbelt.treasuredata.com
> Accept: */*
>
* Connection died, retrying a fresh connect
* Closing connection #0
* Issue another request to this URL: 'https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh'
* About to connect() to toolbelt.treasuredata.com port 443 (#0)
*   Trying 151.101.89.177... connected
* Connected to toolbelt.treasuredata.com (151.101.89.177) port 443 (#0)
* TLS disabled due to previous handshake failure
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12286
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2018-06-23

Discussion