Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login fails with OpenSSL.SSL.Error #14

Open
basilveerman opened this issue May 25, 2016 · 0 comments
Open

Login fails with OpenSSL.SSL.Error #14

basilveerman opened this issue May 25, 2016 · 0 comments

Comments

@basilveerman
Copy link

Using python 2.7.11

virtualenv /tmp/venv
/tmp/venv/bin/pip install esgf-pyclient myproxyclient
/tmp/venv/bin/python
from pyesgf.logon import LogonManager
lm = LogonManager()
lm.logon(username=<username>, password=<password>, hostname='pcmdi9.llnl.gov')

This results in:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/venv/local/lib/python2.7/site-packages/pyesgf/logon.py", line 176, in logon
    bootstrap=bootstrap, updateTrustRoots=update_trustroots)
  File "/tmp/venv/local/lib/python2.7/site-packages/myproxy/client.py", line 1412, in logon
    **getTrustRootsKw)
  File "/tmp/venv/local/lib/python2.7/site-packages/myproxy/client.py", line 1564, in getTrustRoots
    conn.write('0')
  File "/tmp/venv/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1271, in send
    self._raise_ssl_error(self._ssl, result)
  File "/tmp/venv/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1191, in _raise_ssl_error
    _raise_current_error()
  File "/tmp/venv/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]

I get the same error if I use MyProxyClient directly with /tmp/venv/bin/myproxyclient logon -s pcmdi9.llnl.gov -l <username> -o creds.pem, but it works with the -b option to bootstrap the trust.

I had thought the root CA was supposed to be fetched by default (update_trustroots), but this does not appear to be happening.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant