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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityPlease 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
libssl-dev
installed if you want SSL support. sudo apt install libssl-dev
Aug 9, 2017 at 7:44
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).
curl --version | grep Protocols
.... Helpful as well if you could give the exact curl command that is failing?which curl
andapt-cache policy curl
would provide some helpful insight too.