Project

General

Profile

Bug #9855

Cert/key authentication with environment variables crashes.

Added by Herbert Greenlee over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
08/20/2015
Due date:
% Done:

100%

Estimated time:
Duration:

Description

Environment variable cert/key authentication crashes. Command line cert/key is OK.

$ export X509_USER_CERT=/tmp/x509up_u1731
$ export X509_USER_KEY=/tmp/x509up_u1731
$ samweb -s server-info
Traceback (most recent call last):
File "/grid/fermiapp/products/common/db/../prd/sam_web_client/v1_9/NULL/bin/samweb", line 12, in <module>
sys.exit(samweb_cli.main())
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_cli.py", line 1055, in main
return command.run(cmdoptions, args)
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_cli.py", line 30, in run
print self.samweb.serverInfo()
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_client/misc.py", line 15, in serverInfo
response = samweb.getURL('', **kwargs)
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_client/client.py", line 142, in getURL
return self._doURL(self.http_client.getURL, url, params=params, *args, **kwargs)
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_client/client.py", line 157, in _doURL
return method(url, params=params, data=data, *args, **kwargs)
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_client/http_client.py", line 106, in getURL
return self._doURL(url, method='GET',params=params, **kwargs)
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_client/http_client_urllib2.py", line 161, in _doURL
return Response(self._opener.open(request), stream=stream)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/grid/fermiapp/products/common/prd/sam_web_client/v1_9/NULL/python/samweb_client/http_client_urllib2.py", line 87, in https_open
return self.do_open(self.getConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1162, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib64/python2.6/httplib.py", line 936, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.6/httplib.py", line 973, in _send_request
self.endheaders()
File "/usr/lib64/python2.6/httplib.py", line 930, in endheaders
self._send_output()
File "/usr/lib64/python2.6/httplib.py", line 802, in _send_output
self.send(msg)
File "/usr/lib64/python2.6/httplib.py", line 761, in send
self.connect()
File "/usr/lib64/python2.6/httplib.py", line 1138, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib64/python2.6/ssl.py", line 342, in wrap_socket
suppress_ragged_eofs=suppress_ragged_eofs)
File "/usr/lib64/python2.6/ssl.py", line 118, in init
cert_reqs, ssl_version, ca_certs)
TypeError: sslwrap() argument 3 must be string or None, not tuple

Associated revisions

Revision 2a719abb (diff)
Added by Robert Illingworth over 4 years ago

Fix X509_USER_CERT/X509_USER_PROXY envvars not working - resolves #9855

History

#1 Updated by Robert Illingworth over 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Robert Illingworth over 4 years ago

  • Target version set to v2_0

#3 Updated by Robert Illingworth over 4 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF