incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jed Smith <>
Subject Re: [libcloud] SSL certs checking
Date Sat, 13 Nov 2010 17:13:33 GMT
2010/11/12 Toma┼ż Muraus <>

> I have made a few modification to your patch, namely if M2Crypto library is
> not available, it uses a custom HTTPS connection module which verifies the
> server certificate.

The license on means we cannot accept that file. Homogeneous
licensing is necessary as part of our involvement in the Apache Software

Also, a quick test on my machine resulted in a fairly quick traceback:

Python 2.7 (r27:82500, Oct 20 2010, 03:21:03)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from libcloud.drivers.linode import LinodeNodeDriver
>>> z = LinodeNodeDriver("nGDJ.....")
>>> z.list_nodes()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "libcloud/drivers/", line 232, in list_nodes
    data = self.connection.request(LINODE_ROOT, params=params).objects[0]
  File "libcloud/", line 484, in request
  File "/usr/lib/python2.7/", line 946, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/", line 987, in _send_request
  File "/usr/lib/python2.7/", line 940, in endheaders
  File "/usr/lib/python2.7/", line 803, in _send_output
  File "/usr/lib/python2.7/", line 755, in send
  File "libcloud/", line 50, in connect
    if not self._verify_hostname(, cert):
  File "libcloud/", line 57, in _verify_hostname
    if (hostname == common_name) or hostname in alt_names:
TypeError: argument of type 'NoneType' is not iterable

Looks like alt_names is None?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message