Bug 832344

Summary: Certificate validation fails due to multiple 'dns' entries in subjectAltName
Product: [Fedora] Fedora Reporter: Richard Fearn <richardfearn>
Component: python-httplib2Assignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: andreas.bierfert, dchen, Jan.van.Eldik, jose.castro.leon, rmonk, smilner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-30 08:28:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard Fearn 2012-06-15 08:26:12 UTC
Description of problem:

After updating python-httplib2, an existing script that uses the Instapaper (http://www.instapaper.com/) API fails because the certificate is considered invalid.

Version-Release number of selected component (if applicable):

python-httplib2-0.7.4-2.fc16.noarch

How reproducible:

Every time the script runs

Steps to Reproduce:
1. Run script using Instapaper API
2. Get CertificateHostnameMismatch exception

Actual results:

httplib2.CertificateHostnameMismatch: Server presented certificate that does not match host www.instapaper.com: {'notAfter': 'Apr 13 00:29:37 2017 GMT', 'subjectAltName': (('DNS', 'www.instapaper.com'), ('DNS', 'instapaper.com')), 'subject': ((('serialNumber', u'kFgvILuOXBY2A3gz3DTbhKsV8Tm6x8T7'),), (('countryName', u'US'),), (('organizationName', u'www.instapaper.com'),), (('organizationalUnitName', u'GT72497635'),), (('organizationalUnitName', u'See www.rapidssl.com/resources/cps (c)11'),), (('organizationalUnitName', u'Domain Control Validated - RapidSSL(R)'),), (('commonName', u'www.instapaper.com'),))}

Additional info:

I've attached a patch to httplib2 issue 208: http://code.google.com/p/httplib2/issues/detail?id=208#c3

Comment 1 Steve Milner 2012-06-15 15:45:54 UTC
Exact same issue hit by one of my applications.

Comment 2 Richard Monk 2012-06-15 15:59:00 UTC
Reproducer:

import httplib2
h = httplib2.Http(ca_certs='/etc/pki/tls/certs/ca-bundle.crt')
resp,content = h.request("https://en.wikipedia.org")

Comment 3 Ding-Yi Chen 2012-06-21 08:28:06 UTC
*** Bug 830190 has been marked as a duplicate of this bug. ***

Comment 4 Jose Castro Leon 2012-06-21 09:10:45 UTC
Last patch works for me also.

Comment 5 Fedora Update System 2012-06-22 07:26:05 UTC
python-httplib2-0.7.4-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-httplib2-0.7.4-4.fc16

Comment 6 Fedora Update System 2012-06-22 07:26:20 UTC
python-httplib2-0.7.4-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-httplib2-0.7.4-4.fc17

Comment 7 Fedora Update System 2012-06-22 07:26:35 UTC
python-httplib2-0.7.4-4.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-httplib2-0.7.4-4.el6

Comment 8 Fedora Update System 2012-06-22 07:26:50 UTC
python-httplib2-0.7.4-4.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/python-httplib2-0.7.4-4.el5

Comment 9 Fedora Update System 2012-06-22 16:00:41 UTC
Package python-httplib2-0.7.4-4.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-httplib2-0.7.4-4.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-6212/python-httplib2-0.7.4-4.el6
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-06-30 08:28:00 UTC
python-httplib2-0.7.4-4.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2012-06-30 08:28:34 UTC
python-httplib2-0.7.4-4.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-07-11 01:31:33 UTC
python-httplib2-0.7.4-4.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2012-07-11 01:33:08 UTC
python-httplib2-0.7.4-4.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.