Must I call OpenAI API via a https site?

Hi,

I use WAMP Server to create a local server and install WordPress site at http://127.0.0.2

Then I use a WordPress plugin to call OpenAI API, but get the following error:

“cURL error 60: SSL certificate problem: unable to get local issuer certificate (see libcurl - Error Codes) for https://api.openai.com/v1/chat/completions?my-param=bar

Does that means I must install a SSL on my local server and access it via https instead of http to call OpenAI API?

Also the developer of the plugin told me that I need to call OpenAI API from a live server instead of a local server, is that the case?

Thanks

I got a bit different error from requests simply changing the protocol to http://

HTTP error 405: {
“error”: {
“message”: “Only POST requests are accepted.”,
“type”: “invalid_request_error”,
“param”: null,
“code”: “method_not_supported”
}
}

Protecting you from sending your API key in the clear.