Pycurl HTTPS tests fail: certificate subject name (127.0.0.1) does not match target host name '127.0.0.1'")

Bug #1707499 reported by Jelmer Vernooij on 2017-07-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

With bzr.dev, pycurl 7.43.0-2+b1 most pycurl HTTPS tests fail:

ERROR: per_transport.TransportTests.test_clone(HTTPS_pycurl_transport,HTTPSServer_PyCurl)rver_PyCurl)
    log: {{{2.747 got pycurl error: 51, SSL: certificate subject name (127.0.0.1) does not match target host name '127.0.0.1', (51, "SSL: certificate subject name (127.0.0.1) does not match target host name '127.0.0.1'"), url: https://127.0.0.1:40199/a}}}
traceback-1: {{{
Traceback (most recent call last):
  File "/home/jelmer/src/bzr/unstable/bzrlib/tests/per_transport.py", line 1293, in test_clone
    self.assertTrue(t1.has('a'))
  File "/home/jelmer/src/bzr/unstable/bzrlib/transport/http/_pycurl.py", line 162, in has
    self._curl_perform(curl, header)
  File "/home/jelmer/src/bzr/unstable/bzrlib/transport/http/_pycurl.py", line 395, in _curl_perform
    curl.perform()
pycurl.error: (51, "SSL: certificate subject name (127.0.0.1) does not match target host name '127.0.0.1'")
}}}

Jelmer Vernooij (jelmer) wrote :

Using 'localhost' rather than '127.0.0.1' seems to fix this.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers