How do i get cURL to use https

Jorma Turkenburg

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.sh | sh

gives me this:

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

Checking curl -V results in:

Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
Features: IPv6 Largefile

HTTPS is missing from that list... so, how do I install cURL with support for HTTPS?

Oh, and sudo apt-get install curl is what I did to install it in the first place.

Max Worg

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.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How do I use a Scanner only once then get rid of it?

분류에서Dev

How do I use Xamarin iOS PickView to get the value?

분류에서Dev

How do I use OptiPNG on Windows to get a lossless file?

분류에서Dev

How do I get chrome to use a time value in an html form?

분류에서Dev

How do I use MapStateListener?

분류에서Dev

Lua-cURL : https get into string

분류에서Dev

How do I get Debian to use systemd-logind for user session control?

분류에서Dev

How do I get Safari 9 to use my new pinned tab icon?

분류에서Dev

How do I use OR with if statements in regards to strings

분류에서Dev

How do i use Blazor components in the code?

분류에서Dev

Python: How do i use itertools?

분류에서Dev

How do I use runit with zookeeper

분류에서Dev

How do I use Firefox cookies with Wget?

분류에서Dev

How do I use the GeometryConstraint class?

분류에서Dev

How do I make use of rotation matrices?

분류에서Dev

How do I configure ActiveJob to use Resque?

분류에서Dev

How do i use SetPixel on a new Bitmap?

분류에서Dev

How do I use "<<" with my own struct?

분류에서Dev

How do I use URL directories as variables?

분류에서Dev

What is fileAPI ? How do I use it with angular?

분류에서Dev

How do I open and use phpmyadmin?

분류에서Dev

How do I configure Docker to use ZFS?

분류에서Dev

How do I use the latest GCC on Ubuntu?

분류에서Dev

How do I use man pages to learn how to use commands?

분류에서Dev

How do I get root in terminal?

분류에서Dev

How do I get the multiprocessing running?

분류에서Dev

How do I get started with Translations?

분류에서Dev

How do I get information from a UITableViewCell?

분류에서Dev

How do I get iPads to upload images?