[transfer-api] strange ssl failure in API

Maxim Potekhin potekhin at bnl.gov
Sun Feb 5 19:54:58 CST 2012


Greetings,

in my current project, user A deposits their proxy onto a MyProxy 
server, user B gets it and
uses it to operate globus API.

In the transcript below, "client.cert" is the proxy obtained from 
MyProxy. The stack says that it's ssl alert: certificate unknown. I 
checked the proxy it's valid, I can even do gsissh to Globus with it, 
from account "B".
What could have gone amiss? Both users A and B are on the same host.

Regards
Maxim

 >>> a = api_client.TransferAPIClient(username="mxp", 
server_ca_file="/direct/usatlas+u/sm/ap/gd-bundle_ca.cert", 
cert_file="client.cert", key_file="client.cert")

 >>> status_code, status_message, data = a.task_list()
Traceback (most recent call last):
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 257, in _request
     r, response_body = do_request()
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 247, in do_request
     self.c.request(method, url, body=body, headers=headers)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 914, in request
     self._send_request(method, url, body, headers)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 951, in _send_request
     self.endheaders()
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 908, in endheade                                       rs
     self._send_output()
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 780, in _send_ou                                       tput
     self.send(msg)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 739, in send
     self.connect()
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/verified_https.py", line 89, in connect
     ca_certs=self.ca_certs)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/ssl.py", line 
338, in wrap_socket
     suppress_ragged_eofs=suppress_ragged_eofs)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/ssl.py", line 
120, in __init__
     self.do_handshake()
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/ssl.py", line 
279, in do_handshake
     self._sslobj.do_handshake()
SSLError: [Errno 1] _ssl.c:490: error:14094416:SSL 
routines:SSL3_READ_BYTES:sslv3 alert 
ce                                       rtificate unknown
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 372, in task_list
     return self.get("/task_list" + encode_qs(kw))
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 332, in get
     return self._request_json("GET", path)
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 315, in _request_json
     r, response_body = self._request(method, path, body, content_type)
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 257, in _request
     r, response_body = do_request()
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfe                                       
r/api_client/__init__.py", line 247, in do_request
     self.c.request(method, url, body=body, headers=headers)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 914, in request
     self._send_request(method, url, body, headers)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 951, in _send_re                                       quest
     self.endheaders()
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 908, in endheade                                       rs
     self._send_output()
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 780, in _send_ou                                       tput
     self.send(msg)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/httplib.py", 
line 739, in send
     self.connect()
   File 
"/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/site-packages/globusonline/transfer/api_client/verified_https.py", 
line 89, in connect
     ca_certs=self.ca_certs)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/ssl.py", line 
338, in wrap_socket
     suppress_ragged_eofs=suppress_ragged_eofs)
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/ssl.py", line 
120, in __init__
     self.do_handshake()
   File "/direct/usatlas+u/mxp/python2.6.7/lib/python2.6/ssl.py", line 
279, in do_handshake
     self._sslobj.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:490: error:14094416:SSL 
routines:SSL3_READ_BYTES:sslv3 alert certificate unknown




More information about the transfer-api mailing list