I am trying to build curl on my RHEL 6.x box as the existing version does not support TLSv1.2. However, no matter what option I select, it always ends up with the following error :
configure: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more. configure: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls....
The options I have attempted are
./configure --with-ssl ./configure --with-ssl=/usr/bin/openssl ./configure --with-nss ./configure --with-gnutls
I have also attempted to download and build nss and openssl but that did not help either.
Best Answer
You should not need to build your own curl version, support for TLS 1.1 & 1.2 (with the
--tlsv1.1
resp.--tlsv1.2
commandline switches) has been backported and became available in 2014 fromcurl
version7.19.7-43
of the RHEL 6 rpm package.Please read this Q&A how version numbers for software stay the same in Red Hat major releases, despite the bugfixes that get applied, or sometimes as in the case of curl, despite new features getting added (and why you should patch RHEL (and derivatives such CentOS) systems.)
Every official RHEL 6 package for curl will say
curl --version = 7.19.7
, it's about the release, as displayed inyum info curl
andrpm -q --changelog curl
; anything beyond43.el6
ought to support TLS 1.2.Despite the fact the curl man page says that the
--tlsv1.2
option was only introduced in curl 7.34, in Red Hat's curl 7.19 both TLS v1.1 and v1.2 are available.