Flask + Okta SSL verification error

I’m using Python 3.10.1 in my MacOS. Facing the SSL Certificate verification failure. Initially, the access_token verification worked. But after some time It started throwing [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997) error. Flask+Okta integration.

How to fix this permanently? Any proper solution? I tried disabling SSL checks in git and all, Nothing worked.

I responded in your other thread, but will include same in this one:

Does the app work correctly when tested locally? I’m curious, are you using a custom domain for your Okta tenant?

No, I’m testing it in my local.

What issuer are you currently using, both for the token and for the verifier? Are you using a custom authorization server?