diff --git a/lib/rapi/client.py b/lib/rapi/client.py
index ce1ba11469fd22d0ed5927bb703dbb92bde60c2c..9cf45707b3c2094b1941de7e8f9ad24d2c207328 100644
--- a/lib/rapi/client.py
+++ b/lib/rapi/client.py
@@ -403,7 +403,7 @@ class GanetiRapiClient(object):
       resp = self._http.open(req)
       encoded_response_content = resp.read()
     except (OpenSSL.SSL.Error, OpenSSL.crypto.Error), err:
-      raise CertificateError("SSL issue: %r" % err)
+      raise CertificateError("SSL issue: %s (%r)" % (err, err))
 
     if encoded_response_content:
       response_content = simplejson.loads(encoded_response_content)