LoginSignup
11
14

More than 5 years have passed since last update.

curlでhttps通信が失敗する

Posted at

curlでhttps通信をしようとすると

curl: (1) Protocol "https" not supported or disabled in libcurl

というエラーが出て失敗する。

curl -V

で有効なプロトコルを調べてみるとhttpsが入っていないことに気づく。

./configure --with-ssl=/usr/local/ssl
make
sudo make install

こんな感じでOpenSSLの場所を指定してconfigureしてあげるとhttpsが有効になったcurlがインストールされるらしい。

参考サイト

11
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
14