Skip to main content
If you encounter SSL certificate verification errors on macOS, you may see an error message like this:
This error occurs because Python on macOS might not automatically trust the system’s SSL certificates by default.

1. Install Certificates Using Install Certificates.command

macOS comes with a script to install the necessary SSL certificates for Python. This is often required because Python on macOS might not automatically trust the system’s certificates by default.
  1. Open a terminal.
  2. Navigate to the directory where Python is installed (typically /Applications/Python<version>).
  3. Run the Install Certificates.command script. This will install the certificates needed by Python to verify SSL connections.
This script will install the system certificates that Python needs.