SSL: certificate_verify_failed

Problem solved for me with following steps

  1. Open link https://api.openai.com/v1/engines in Firefox and click on cancel
  2. Download certificate for this in PEM (chain) and open in text editor
    Screenshot 2023-07-01 at 11.16.00 PM
  3. Check which ca file is used. example for python (import certifi print(certifi.where()))
  4. Copy the content of file in step2 to the file in step3 (at the bottom).

Run API code.

4 Likes