Last active
September 13, 2015 15:45
-
-
Save munhitsu/ba11f4728d726e7cf254 to your computer and use it in GitHub Desktop.
SSL issue on OSX 10.10.3 (docker-compose up / docker-py - failing with: SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker-py / docker-compose installed through pip fails with | |
# SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) | |
# At the moment simplest solution is to use python 2.7.6 natively installed | |
$ brew uninstall python | |
# check follwoing commands if everything is ok | |
$ which python | |
/usr/bin/python | |
$ python -V | |
Python 2.7.6 | |
$ python -c 'import ssl; print ssl.OPENSSL_VERSION' | |
OpenSSL 0.9.8zd 8 Jan 2015 | |
# let's install pip & virtualenvwrapper | |
$ wget https://bootstrap.pypa.io/get-pip.py | |
$ sudo python get-pip.py | |
$ sudo pip install virtualenvwrapper | |
# update your .bash_profile | |
# to contain | |
export WORKON_HOME=$HOME/.virtualenvs | |
source /usr/local/bin/virtualenvwrapper.sh | |
# don't forget to trash you old virtual environments and create them from scratch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I do
brew uninstall python
, mypython -V
is stillPython 2.7.10
.The openssl has "older" version:
However I still have the error when doing docker-compose:
Any clue? Thanks