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

Caan't get to work due to SSLError #12

Open
kduffey opened this issue Dec 7, 2017 · 4 comments
Open

Caan't get to work due to SSLError #12

kduffey opened this issue Dec 7, 2017 · 4 comments

Comments

@kduffey
Copy link

kduffey commented Dec 7, 2017

I keep getting this error:

File "/Users/kevin/dev/allstarrma/flask-env/lib/python3.6/site-packages/boto/connection.py", line 1030, in _mexe
raise ex
File "/Users/kevin/dev/allstarrma/flask-env/lib/python3.6/site-packages/boto/connection.py", line 943, in _mexe
request.body, request.headers)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 814, in init
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1068, in do_handshake
self._sslobj.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)

Is there a way to remove SSL? How do you fix?

@lesleslie
Copy link

This error is coming from boto. I don't think you need to remove SSL, I would double check that your aws s3 credentials are setup and configured correctly.

@lesleslie
Copy link

Just of note, there is this method posted to disable boto ssl:

https://gist.github.com/garnaat/3762068

But it looks like it currently doesn't work due to a bug in boto.

@lesleslie
Copy link

lesleslie commented Dec 7, 2017

You can try this though:

https://stackoverflow.com/questions/28115250/boto-ssl-certificate-verify-failed-certificate-verify-failed-while-connecting

There is a note at the bottom of this thread about python3.6 and ssl on macOS I would take a look at. I've been using the python3.6, and ssl, with the python from homebrew without issue.

@Jaza
Copy link
Owner

Jaza commented Dec 7, 2017

See also:

https://stackoverflow.com/questions/15445981/how-do-i-disable-the-security-certificate-check-in-python-requests

For various ways to disable SSL verification in requests / urllib.

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

3 participants