I'm running Fedora 14, i.e., python 2.7 and pyOpenSSL 0.9. According to tox.ini
the requirement is pyopenssl<0.14
, but the OpenSSL.crypto.sign()
method is missing in that version (see below). What is the minimum version of pyOpenSSL required?
Traceback (most recent call last):
[...]
self.service = apiclient.discovery.build( 'admin', 'v1', http=http )
File "/usr/lib/python2.7/site-packages/oauth2client/util.py", line 135, in positional_wrapper
return wrapped(*args, **kwargs)
File "build/bdist.macosx-10.9-x86_64/egg/googleapiclient/discovery.py", line 198, in build
File "/usr/lib/python2.7/site-packages/oauth2client/util.py", line 135, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/oauth2client/client.py", line 530, in new_request
self._refresh(request_orig)
File "/usr/lib/python2.7/site-packages/oauth2client/client.py", line 744, in _refresh
self._do_refresh_request(http_request)
File "/usr/lib/python2.7/site-packages/oauth2client/client.py", line 768, in _do_refresh_request
body = self._generate_refresh_request_body()
File "/usr/lib/python2.7/site-packages/oauth2client/client.py", line 1376, in _generate_refresh_request_body
assertion = self._generate_assertion()
File "/usr/lib/python2.7/site-packages/oauth2client/client.py", line 1505, in _generate_assertion
private_key, self.private_key_password), payload)
File "/usr/lib/python2.7/site-packages/oauth2client/crypt.py", line 328, in make_signed_jwt
signature = signer.sign(signing_input)
File "/usr/lib/python2.7/site-packages/oauth2client/crypt.py", line 116, in sign
return crypto.sign(self._key, message, 'sha256')
AttributeError: 'module' object has no attribute 'sign'