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

Solution 1:

I managed to fix the issue after some hours of trying various options! Here's what I did:

Downloaded from http://curl.haxx.se/download.html.

tar -xzf curl-***.tar.gz
cd curl-*.*.*
./configure --with-ssl
make
sudo make install

Solution 2:

Officially cURL does not support HTTPS. The answer above didn't work for me, already tried download new versions added with --with-ssl command and got no lucky, this answer solved my problem.

https://stackoverflow.com/a/28782797/8146700

  • Content link -

I still don't know why using Aptitude installs a version without support for HTTPS but building from scratch did the trick:

git clone https://github.com/bagder/curl.git sudo apt-get build-dep curl cd curl ./buildconf ./configure make sudo make install

Now curl -V yields

Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets