Skip to content

Instantly share code, notes, and snippets.

@munhitsu
Last active September 13, 2015 15:45
Show Gist options
  • Save munhitsu/ba11f4728d726e7cf254 to your computer and use it in GitHub Desktop.
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))
# 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
@PavelPolyakov
Copy link

Hi,

When I do brew uninstall python , my python -V is still Python 2.7.10.
The openssl has "older" version:

OpenSSL 0.9.8zg 14 July 2015

However I still have the error when doing docker-compose:

[~/tmp/microservices-workshop/msworkshop/step4]$ docker-compose build                                *[master]
Building frontend...
SSL error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

Any clue? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment