Issues Authenticating with Okta SDK

Hello,
I am having issues authenticating with the Okta SDK API tooling. I have success using direct URL API but when I try to use the SDK Client Config, no dice. I am getting the below error:

Cannot connect to host openly.okta.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]

My Client Config is:

config = {
    'orgUrl': OKTA_ORG_URL ("https://MY_ORG.okta.com"),
    'token': OKTA_API_TOKEN,
}

Any help would be amazing, I’ve hit a wall trying to use the SDK which would be much faster than building full urls for scripts

The most likely culprit is that your firewall is blocking ports (Due to local certs
), specifically port 443, for that application. Check to ensure all necessary ports are allowed. See this https://stackoverflow.com/questions/51925384/unable-to-get-local-issuer-certificate-when-using-requests I don’t think it’s due to Okta, assuming your configuration is correct.

This uses python - albeit the issue should be similar https://stackoverflow.com/questions/77442172/ssl-certificate-verify-failed-certificate-verify-failed-unable-to-get-local-is

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.