3

I've a CentOS6 vps on which O trying to access https url through curl it gives not supported error

# curl https://google.com

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

Anyone know how to fix this issue?

Faizan
  • 131
  • 1
  • 1
  • 3
  • Is the OpenSSL library installed? – eric.green Dec 09 '15 at 00:04
  • yes # which openssl /usr/bin/openssl – Faizan Dec 09 '15 at 01:24
  • Output of `curl --version` please. – Brian Dec 09 '15 at 02:22
  • potential duplicate of http://stackoverflow.com/questions/6884669/curl-1-protocol-https-not-supported-or-disabled-in-libcurl – Andrey Dec 09 '15 at 06:11
  • @Brian there are two version of curl installed one at /usr/bin/curl 7.19.7 and other at /usr/local/bin/curl 7.46.0 – Faizan Dec 09 '15 at 11:41
  • The output of `curl --version` includes more than just the version. – Brian Dec 09 '15 at 14:15
  • @Brian `usr/bin/curl --version curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz` This version supports ssl but its not supporting HTTPS using TLS 1.2, which i'm trying to connect. – Faizan Dec 09 '15 at 15:51
  • Tested their site with https://github.com/drwetter/testssl.sh and Qualys. There is something strange going on. Qualys shows them supporting **all** protocols, whereas the bash+openssl testssl.sh is choking on negotiation. Google is probably testing something. Anyway, if you do ldd /usr/bin/curl you can see which openssl libraries curl is compiled against. Most versions of curl on redhat will only support up to TLS 1.0. You may want to test against a different site. – Aaron Dec 10 '15 at 04:25

0 Answers0