Author: ian
Description:
Running a simple pywikibot script gives error that my server has an invalid certificate, then it retries, and seems to ignore that issue and succeeds.
In the error, it reports the certificate for a different domain that my server also hosts, probably because either 1. it is the domain used for reverse dns, or 2. it is the domain which my server redirects to for urls containing the ip address.
Pywikibot should get the certificate for the domain I configured it to use. Here is the error output.
ERROR: Traceback (most recent call last):
File "/root/opt/pywikibot/pywikibot/data/api.py", line 298, in submit body=paramstring) File "/root/opt/pywikibot/pywikibot/comms/http.py", line 174, in request raise request.data
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'),))}
Version: core-(2.0)
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=65189
https://github.com/jcgregorio/httplib2/issues/243