New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access api.cloudflare.com due to SSL certificate validation error #115
Comments
Sorry, this relates to Python/SSL and has nothing to do with the CloudFlare library itself. |
Hello @marcelloromani, I saw your other note about having a "network monitoring app" installed and hence having a certificate issue; however, I wanted to provide you with some feedback to your initial issue. First off, here's a run on my Mac desktop:
Plus, a RPi4:
Note that I'm a revision or so behind you in various areas; but that isn't the issue you had. However, this error brings up a debugging issue. Can you try the command level app
I believe that it won't handle your setup cleanly (clearly it won't connect). I will then work on a cleaner error-handing for that situation. (Yes - I realize you were writing raw Python code to access the API vs using this package; however, I believe this is still a useful test). Thanks! |
Hi @mahtin, thanks a lot for your reply! Here's my output with the network monitoring app active:
Here's the same command with the network monitoring app disabled:
|
Hy today I am also having this error: Although running your custom script does not give any issue. Why is that? And can you also please help me |
I think you're not talking via a clean path to As for your error on those specific URLs? I would check your path. Try it against known good domains like Plus, don't do That all said, I'm happy to help, but this isn't an issue related to this library. |
I am trying to access the CloudFlare API using a custom API token. While the
curl
command provided by the web interface works, accessing the API via Python fails as it doesn't seem to recognise the SSL certificate.How to reproduce:
Using a slightly modified version of this script: urllib3/urllib3#1682 (comment)
I get this error:
Here's the script:
The text was updated successfully, but these errors were encountered: