Red Hat Bugzilla – Bug 1260407
No TLS1.1 or TLS1.2 support in pycurl
Last modified: 2016-11-03 19:05:10 EDT
RHEL 7 version doesn't support the TLS1.1 and TLS1.2 options as well +++ This bug was initially created as a clone of Bug #1260406 +++ Description of problem: pycurl doesn't support the TLS1.1 and TLS1.2 options introduced in curl-7.19.7-43 Version-Release number of selected component (if applicable): python-pycurl-7.19.0-8.el6 How reproducible: always Steps to Reproduce: 1. create test script: # cat /tmp/pycurl_TLS.py import pycurl from StringIO import StringIO buffer = StringIO() c=pycurl.Curl() c.setopt(c.URL, "https://www.redhat.com") c.setopt(c.SSLVERSION, c.SSLVERSION_TLSv1_2) c.perform() c.close() body = buffer.getvalue() print(body) 2. # python /tmp/pycurl_TLS.py Actual results: Traceback (most recent call last): File "/tmp/pycurl_TLS.py", line 9, in <module> c.setopt(c.SSLVERSION, c.SSLVERSION_TLSv1_2) AttributeError: SSLVERSION_TLSv1_2 Expected results: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> ... Additional info: Easyfix patch attached. needed to propagate to upstream
upstream commit: https://github.com/pycurl/pycurl/commit/83ccaa22
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2156.html