question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MacOS: Can't connect to HTTPS URL because the SSL module is not available

See original GitHub issue

Describe the bug The cli fails any networks calls, apparently related to Related issues for Debian/Ubuntu: https://github.com/Azure/azure-cli/issues/4360 / https://github.com/Azure/azure-cli/issues/3720

To Reproduce

  1. brew install azure-cli
  2. az login (any command with a network call)

Expected behavior That the command succeed

Environment summary Install Method: brew CLI version: azure-cli (2.0.32) OS: MacOS 10.13.4 Shell Type: zsh openssl version -v: LibreSSL 2.2.7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
derekperkinscommented, May 22, 2018

This was super frustrating, so I figured I’d add a Q&A here to try and help anyone dealing with this in the future. I solved this by uninstalling and reinstalling:

  1. brew uninstall --force openssl
  2. brew install openssl

When I ran brew install openssl without uninstalling first, this is what happened:

$ brew install openssl
Warning: openssl 1.0.2o_1 is already installed, it's just not linked
You can use `brew link openssl` to link this version.

$ brew link openssl
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
5reactions
j3piccommented, Apr 20, 2020

For me, removing the Pyenv install of Python was necessary after reinstalling OpenSSL:

rm -rf ~/.pyenv
pyenv install `cat .python-version`
Read more comments on GitHub >

github_iconTop Results From Across the Web

SSL module in Python is not available (on OSX) - Stack Overflow
Start with showing the output of which python , which pip , python --version , pip --version . Then, last time I checked,...
Read more >
ssl module in Python is not available in iterm2env for macOS ...
It looks like there is a dependency on homebrew-installed openssl. For now you can work around this by installing homebrew and then doing...
Read more >
Python "SSLError("Can't connect to HTTPS URL because the ...
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Read more >
pip can't connect to https url because the ssl module is not ...
1 Answer. The problem is that Anaconda Python ships with its own SSL libraries and does not use the system SSL libraries when...
Read more >
Conda fails with SSLError("Can't connect to HTTPS URL ...
... connect to HTTPS URL because the SSL module is not available. ... CONNECTION FAILED for url <https://conda.anaconda.org/pythonnet/win-64/repodata.json>.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found