Unable to get local issuer certificate (_ssl.c:1000)')))

Hello Team, I am using the pincone API in the python project. I am getting below error:-
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.pinecone.io’, port=443): Max retries exceeded with url: /indexes (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)’)))

I have tried pip3 install --upgrade certifi, but nothing worked…

Python Version
Python 3.12.0

Could you please guide me how to resolve this error?

I’m having the same error. Does anyone know the solution to this?