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
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 openssl@1.1 # 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/openssl@1.1
ln -s "$(brew --prefix)"/etc/openssl@1.1/cert.pem /usr/local/etc/openssl@1.1/cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment