QGIS login fails with "SSL: CERTIFICATE_VERIFY_FAILED" for login.planet.com

Summary

Authenticating with Planet from QGIS fails with an SSL certificate verification error. QGIS's bundled Python can't validate the certificate chain presented by login.planet.com. The cause is almost always on your computer or network. Typical causes are a TLS-intercepting proxy, antivirus HTTPS scanning, or an outdated CA bundle.

Symptoms

You see this message when you log in from QGIS:

Login failed:
HTTPSConnectionPool(host='login.planet.com', port=443): Max retries exceeded with url: /well-known/openid-configuration (Caused by SSLError(SSLCertVerificationError(1, '[SSL:CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c: 1010)')))

Cause

QGIS's Python requests library uses the certifi CA bundle. It does not use the Windows or macOS system trust store. The login fails if the certificate chain can't be validated against that bundle.

Common reasons, most likely first:

  1. TLS-intercepting proxy or corporate firewall (for example Zscaler, Palo Alto, Netskope, Fortinet). It re-signs HTTPS traffic with a corporate root CA. The OS trusts that CA, but QGIS's Python doesn't.
  2. Antivirus HTTPS scanning (for example Kaspersky, ESET, Avast, Bitdefender). It re-signs traffic the same way.
  3. Outdated or incomplete CA bundle in QGIS. This is common with old QGIS installs or the OSGeo4W build.
  4. Incorrect system date or time on your computer.
  5. Missing intermediate certificate in the chain. This is rare for Planet.

Diagnosis

  1. Inspect the certificate issuer. Open https://login.planet.com/.well-known/openid-configuration in a browser and view the certificate.
    • If the issuer is a public CA (for example Amazon or Let's Encrypt), the chain is fine. The problem is local to QGIS's Python.
    • If the issuer is a corporate or antivirus name, TLS interception is the cause.
  2. Test outside QGIS. Run curl -v https://login.planet.com/.well-known/openid-configuration or openssl s_client -connect login.planet.com:443 -showcerts. If curl works but QGIS fails, the QGIS CA bundle is the cause.
  3. Test inside the QGIS Python console.

    import requests, certifi
    print(certifi.where())
    print(requests.get("https://login.planet.com/.well-known/openid-configuration").status_code)
    print(requests.get("https://www.google.com").status_code)
    • If all sites fail, the cause is the local trust store or interception.
    • If only Planet fails, check the network path.
  4. Try another network. Use a phone hotspot with the VPN off. If login works there, the corporate network or proxy is the cause.
  5. Collect environment details. Note the QGIS version and install type (OSGeo4W, standalone, macOS, Flatpak). Also note the Planet plugin version and the system date and time.

Resolution

Apply the fix that matches the cause found above.

  • Corporate CA or proxy interception
    • Export the corporate root CA as a PEM file. Append it to the certifi bundle that QGIS uses. Alternatively, set the REQUESTS_CA_BUNDLE and SSL_CERT_FILE environment variables to a bundle that includes it.
    • In QGIS, go to Settings > Options > Authentication > Authorities and import the corporate CA. Enable "Use system's certificates" if it's available.
    • Ask your IT team to exclude login.planet.com and api.planet.com from SSL inspection.
  • Antivirus HTTPS scanning
    • Disable HTTPS or SSL scanning for QGIS, or add login.planet.com and api.planet.com as exclusions.
  • Outdated CA bundle
    • Update QGIS and the Planet QGIS plugin.
    • Run pip install --upgrade certifi in the QGIS Python environment.
  • Wrong system clock
    • Correct the date, time and time zone, then retry.

Contact Planet Support

Contact Planet Support if:

  • The certificate issuer in the browser is Planet's normal public CA, and the error persists on a clean network with an updated QGIS.
  • Include these details in your request:
    • The full error text.
    • The QGIS and plugin versions.
    • The OS and install type.
    • The certificate issuer shown in the browser.
    • The output of the curl and Python console tests.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.