https://bugzilla.wikimedia.org/show_bug.cgi?id=68794
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |upstream Status|UNCONFIRMED |NEW See Also| |https://github.com/jcgregor | |io/httplib2/issues/243 Ever confirmed|0 |1
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- I can reproduce this with a custom family file I created for ofswiki (thank you for reporting which wiki this occurred on)
The core problem is that httplib2https://github.com/jcgregorio/httplib2 complains about this.
$ python
import httplib2 httplib2.__version__
'0.9'
httplib2.Http().request('https://ofswiki.org/')
Traceback (most recent call last): File "<console>", line 1, in <module> File ".../httplib2/__init__.py", line 1593, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File ".../httplib2/__init__.py", line 1335, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File ".../httplib2/__init__.py", line 1257, in _conn_request conn.connect() File ".../httplib2/__init__.py", line 1032, in connect 'host %s: %s' % (hostname, cert), hostname, cert) CertificateHostnameMismatch: Server presented certificate that does not match host ofswiki.org: {'notAfter': 'May 23 20:21:24 2015 GMT', 'subjectAltName': (('DNS', 'www.iankelling.org'), ('DNS', 'iankelling.org')), 'subject': ((('description', u'0NEmhfbNSxh2R2RF'),), (('countryName', u'US'),), (('commonName', u'www.iankelling.org'),), (('emailAddress', u'REDACTED-AT-iankelling.org'),))}
compare that with httplib2.Http().request('https://en.wikipedia.org/')
And this works like a charm:
httplib2.Http(disable_ssl_certificate_validation=True).request('https://ofswiki.org/')
The fact that it only checks the SSL certificate once is reported here:
https://github.com/jcgregorio/httplib2/issues/243
I cant quickly see an issue related to the certificate problem you are experiencing. https://github.com/jcgregorio/httplib2/issues If you can find it, or create a new issue, add it to our related URLs.