GitHub user Kami opened a pull request:
https://github.com/apache/libcloud/pull/682
Throw a more friendly error message if establishing SSL / TLS connection
fails
With this change we now throw a more user-friendly error message in case
establishing SSL / TLS connection fails.
New error message:
```python
File "/home/kami/w/lc/libcloud/libcloud/httplib_ssl.py", line 312, in
connect
raise new_e
socket.error: Failed to establish SSL / TLS connection ([Errno 104]
Connection reset by peer). It is possible that the server doesn't support
requested SSL / TLS version (TLS v1.0).
For information on how to work around this issue, please see
https://libcloud.readthedocs.org/en/latest/other/ssl-certificate-validation.html#changing-used-ssl-tls-version
```
Related to https://issues.apache.org/jira/browse/LIBCLOUD-791
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Kami/libcloud
friendlier_error_message_on_tls_error
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/682.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #682
----
commit a9acb7fca02867c3d1aa101c9d457803cfb7aef1
Author: Tomaz Muraus <[email protected]>
Date: 2016-01-14T12:47:09Z
Throw a more friendly error message if establishing SSL / TLS connection
fails.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---