Skip to content
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

SSL certificate verification fails (CERTIFICATE_VERIFY_FAILED) #225

Open
overdue82 opened this issue Apr 7, 2021 · 6 comments
Open

SSL certificate verification fails (CERTIFICATE_VERIFY_FAILED) #225

overdue82 opened this issue Apr 7, 2021 · 6 comments

Comments

@overdue82
Copy link

I'm trying to do a backup of all files and media on my tumblr and my likes, but keep getting
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed <_ssl.c:590>>

I already allowed the program in API application settings and copied the API Key to the tumblr_backup.py but now the problem above persists. Unless I filled something out on the application wrong? I didn't know what to put for the urls so I used mine tumblr url. This is how I filled out the API application.

  • Application Name: backup tumblr posts
  • Application Website: my tumblr url
  • Application Description: backup tumblr posts
  • Administrative contact email: my email
  • Default callback URL: my tumblr url
@bbolli
Copy link
Owner

bbolli commented Apr 8, 2021

Try with option -S, please.

@bbolli
Copy link
Owner

bbolli commented Apr 18, 2021

If you're on macOS, see #226.

@bbolli bbolli closed this as completed Apr 18, 2021
@cebtenzzre
Copy link
Collaborator

This is a related but different issue: Some builds of Python 2 don't support SNI (Server Name Indication) and will sometimes complain about certificate verification errors. There are three ways to work around this:

  • You could try my fork, which handles this the same way requests does (requires pyOpenSSL)
  • You could try installing Python 2 via homebrew (relevant SO post) (or on other platforms, just updating it), which might get you a build that supports SNI
  • You can disable SSL certificate verification with -S

@overdue82
Copy link
Author

Just a heads up. I'm on Windows and the problem resolved itself after I updated Python. I must've been using an old version and for whatever reason it was giving me verification errors. I don't know but it resolved after I updated.

Also using -S never worked with the tag "tumblr_backup.py username -S" or so I read on another similar thread. I tried that before updating and it give me an unknown error because it didn't recognize "-S". Unless I was doing that wrong. I don't know but like I said it resolved after the update. I'm only replying now because I kept getting email notifications.

@bbolli
Copy link
Owner

bbolli commented Apr 19, 2021

Also using -S never worked with the tag "tumblr_backup.py username -S"

Options generally go before the non-options, so the command should have been tumblr_backup.py -S username.

@cebtenzzre
Copy link
Collaborator

cebtenzzre commented Apr 24, 2021

I'm reopening this issue so it can be tracked separately. Certificate verification errors are tracked here, TLS protocol version errors are tracked in #226.

@cebtenzzre cebtenzzre reopened this Apr 24, 2021
@cebtenzzre cebtenzzre changed the title SSL: CERTIFICATE_VERIFY_FAILED 590 SSL certificate verification fails (CERTIFICATE_VERIFY_FAILED) Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants