16

When I try curl http://google.com it works however when I do it with https, it gives this error:

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

I've searched for various answers but none explains how to fix it?

andrew.46
  • 38,003
  • 27
  • 156
  • 232
nabtron
  • 411
  • 2
    Can you add the following command and results to your question: curl --version | grep Protocols .... Helpful as well if you could give the exact curl command that is failing? – andrew.46 Sep 07 '16 at 06:49
  • 2
    The output of which curl and apt-cache policy curl would provide some helpful insight too. – David Foerster Sep 07 '16 at 09:23
  • 1
    Are you using Ubuntu? – Anwar Sep 08 '16 at 13:48
  • http://askubuntu.com/questions/683857/curl-1-protocol-https-not-supported-or-disabled-in-libcurl – Ciro Santilli OurBigBook.com Mar 23 '17 at 08:13
  • Did you set proxy? Try to unset http_proxy or https_proxy if it was set. – 32cupo Feb 19 '20 at 11:42
  • How is this the right answer. I tried to install myself and got countless errors. --with-ssl says that SSL is not available. Why isn't what you get from apt install curl going to be the right thing? It was on other ubuntu systems. – sjatkins Aug 22 '21 at 07:33

2 Answers2

12

Please install curl with SSL

Download:

Installing with SSL:

  • Unzip -> open terminal inside the directory PATH and type:

    ./configure --with-ssl
    make
    sudo make install
    

You can also specify the path to SSL installation, see ./configure --help for details

Benny
  • 4,920
5

A quick google found this curl FAQ on troubleshooting this problem.

But I actually would suggest to delete your current manual install of curl, and just install it with sudo apt-get install curl. The default Ubuntu install has the right libraries for https (and many more).

Jeroen
  • 181