-
Notifications
You must be signed in to change notification settings - Fork 209
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
SSLError: bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],) #601
Comments
Creating a
|
That is not a solution to the problem -- that sends your credentials and all other data in clear text without any sort of encryption. You probably do not want to do thatl. I'm not sure what django-cumulus is doing, but |
Oh fuck, thanks for the suggestion. Time to dig deeper. Blah. |
Looking at the traceback it's all pyrax and requests code that triggers this condition. After some reading it's suggested to upgrade Python to 2.7.9 or newer, I'm using:
upgraded to 2.7.10 just now but same error :-/ @mnaglee what versions are you using? |
Looks like certifi is the issue. I'm on Ubuntu 14.04 LTS as well and can't upgrade openssl easily. This comment describes the same issue and suggests uninstalling the certifi package. And bang, no more issues. Does this work for you @mnaglee? |
@thijstriemstra: Ahh, good find. Rather than remove certifi completely, I've pinned it at the previous version as suggested in some of the comments in that thread. This did it for me:
|
Thanks, even better! |
Worth noting: making this change adds the following warning to django startup:
So.... I guess Rackspace needs to update their certs while we wait for distros to package OpenSSL 1.0.2. If I understand all this correctly, we'll have problems until both problems are remedied. |
I'll leave this issue open in case this assessment of the problem is incorrect. Maintainers can close, otherwise. |
We know about the subjectAltName issue on the cert and are rectifying it. It is truly just a warning and everything is actually functioning fine. |
I know that this is closed, but just wanted to correct a misconception: turning off SSL certificate verification does not result in your credentials, etc., being sent in clear text across the wire. It simply means that when negotiating cryptographic keys for your session, that you will trust the certificate as valid. This is useful when the other party is using a self-signed certificate that you trust, or, as in this case, where the provider has not updated their certificates properly. |
Ah, yeah - sorry about that. |
The subjectAltName issue is tracked at #528 |
@mnaglee Just saw an update for 14.04 related to openssl, ca-certificates et al.
Is this going to help, or, when are we able to upgrade to the latest certifi, or is that not going to happen during the lifetime of this Ubuntu LTS? |
I was able to resolve the SSL issue by adding some removed Thawte certificates to /usr/local/share/ca-certificates:
They were removed in a mid-Dec update and are part of the existing Rackspace API cert chain: |
Just going to throw it out there that as a brand new user with a brand new virtualenv, I ran into this error. Fix was to install the OLD version of certifi. This is literally the first thing I did with pyrax and it makes it feel pretty wonky. |
Attempting to use django-cumulus, and a fresh install yields:
This appears to be a resurrection of #545
The text was updated successfully, but these errors were encountered: