How do i get cURL to use https

后端 未结 2 1267
囚心锁ツ
囚心锁ツ 2021-01-15 17:50

I\'m on Ubuntu 14.04.2 LTS. cURL\'s installed but does not include HTTPS as a protocol that it will use.

For example:

curl https://npmjs.org/install.         


        
2条回答
  •  囚心锁ツ
    2021-01-15 18:26

    Your curl version wasn't compiled with SSL support. It's actually a flag that is passed during the config phase:

    ./configure --with-ssl

    The quickest and most complete way is to download the curl sources and compile it yourself with the --with-ssl flag. This will also ensure that your curl and SSL libraries won't be vulnerable to any of the nasty, known vulnerabilities as well. There are workarounds for using insecure versions of SSL but of course that's not recommended.

提交回复
热议问题