SSL error([X509] PEM lib) while using OpenAI

While I’m using the openai.Completion.create method, I’m getting this error:

Error communicating with OpenAI: HTTPSConnectionPool(host=‘api.openai.com’, port=443): Max retries exceeded with url: /v1/engines/text-davinci-002/completions (Caused by SSLError(SSLError(9, ‘[X509] PEM lib (_ssl.c:4265)’)))

I have tried all the possible solutions like:

Updating the operating system’s root certificates.
using a different SSL verification method. set the VERIFY parameter to False when making the HTTPS request.

What should I do to solve this?