Skip to content

Instantly share code, notes, and snippets.

@glyph
Forked from jegger/fix-osx-ssl-cert-error.txt
Last active July 25, 2019 18:32
Show Gist options
  • Save glyph/d0a95165d8fcbe8666566abd41c408c5 to your computer and use it in GitHub Desktop.
Save glyph/d0a95165d8fcbe8666566abd41c408c5 to your computer and use it in GitHub Desktop.
Certificate validation error on mac osx pyopenssl (twisted)
# When you get an error like
# ('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')
# when using twisted, autobahn, etc...
# on macos
# than you may have to install trust roots
# Do this by using brew:
# (install brew)
brew update
brew install [email protected] # this must match the current version that the macOS cryptography wheel is built against
# Iff you have homebrew installed in a non-standard location,
# (i.e. "$(brew --prefix)" != /usr/local)
mkdir -p /usr/local/etc/[email protected]
ln -s "$(brew --prefix)"/etc/[email protected]/cert.pem /usr/local/etc/[email protected]/cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment