https://bugzilla.wikimedia.org/show_bug.cgi?id=68794

            Bug ID: 68794
           Summary: pywikibot uses incorrect domain for https certificate
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: pywikipedia-b...@lists.wikimedia.org
          Reporter: i...@iankelling.org
       Web browser: ---
   Mobile Platform: ---

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'),))}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to