Problem solved for me with following steps
- Open link
https://api.openai.com/v1/engines
in Firefox and click on cancel - Download certificate for this in PEM (chain) and open in text editor
- Check which ca file is used. example for python (import certifi print(certifi.where()))
- Copy the content of file in step2 to the file in step3 (at the bottom).
Run API code.