Python Forum
Building from source on MacOS: installing certificates
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building from source on MacOS: installing certificates
#1
I successfully built Python 3.8 on MacOS Sierra, by following the advice at the developer docs (via configure, make, make test, and make install). It's installed on a local directory, I did put the bin directory on my PATH, and everything seems to work fine.

However, I'm getting the infamous "SSL: CERTIFICATE_VERIFY_FAILED" error (which seems to be common in MacOS) when using a program that tries to download a package. The recommended practice is to execute the "Install Certificates. command" that comes with the prebuilt bundle. The problem is that I'm not using the prebuilt bundle, I just built it from source to a local directory, as I said above.

How can I proceed if I'm building from source?

Thanks!
Reply
#2
I decided to download the precompiled installer, and extract the "Install Certificates.command" from it, then store the Python code it contains into a "installcerts.py" file (only the Python code, excluding a few non-Python lines), and then run "python3 ./installcerts.py"

It worked fine, but this should be documented somewhere, for users wanting to build from source on MacOS.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Text widget -macOS apffal 1 399 Sep-23-2021, 10:12 PM
Last Post: apffal
  Installing Python3 on MacOS using brew zazas321 5 1,348 May-28-2021, 06:19 AM
Last Post: perfringo
  Installing python3-devel from source on centos6 judith 0 767 Dec-04-2020, 05:33 AM
Last Post: judith
  can't open excel with my macos dcc 0 1,197 Oct-30-2019, 04:18 AM
Last Post: dcc
  SSL Root Certificates? Mallows 2 2,451 Jul-26-2019, 10:10 PM
Last Post: Mallows
  pymysql on macos seirra tony1812 5 2,844 Sep-17-2017, 03:24 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020