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

Use of TLS <1.2 causes TLSV1_ALERT_PROTOCOL_VERSION / "tlsv1 alert protocol version" #226

Open
wonderingwombat opened this issue Apr 18, 2021 · 2 comments

Comments

@wonderingwombat
Copy link

I've recently realised that I'm getting the following errors when trying to run tumblr-utils. I downloaded the latest version this morning to see if that fixed it but with no luck.

When I run the following command: python2 tumblr_backup.py -i --no-ssl-verify --save-video BLOGNAME I get 10 copies of the following error: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)> getting https://api.tumblr.com/v2/blog/BLOGNAME.tumblr.com/posts?reblog_info=true&api_key=APIKEY&limit=1

I have tried with and without the -S and --no-ssl-verify flags.

I'm using Python 2.7.11.

@cebtenzzre
Copy link
Collaborator

AFAIK this can happen on macOS when the version of OpenSSL linked to the system Python is too old to handle TLSv1.2. There are two ways you could work around this issue:

@cebtenzzre cebtenzzre changed the title SSL: TLSV1_ALERT_PROTOCOL_VERSION on _ssl.c:590 (macOS) Use of TLS <1.2 causes TLSV1_ALERT_PROTOCOL_VERSION / "tlsv1 alert protocol version" Apr 24, 2021
@cebtenzzre cebtenzzre changed the title (macOS) Use of TLS <1.2 causes TLSV1_ALERT_PROTOCOL_VERSION / "tlsv1 alert protocol version" Use of TLS <1.2 causes TLSV1_ALERT_PROTOCOL_VERSION / "tlsv1 alert protocol version" Apr 25, 2021
@cebtenzzre
Copy link
Collaborator

This can actually occur on any platform if using old enough OpenSSL - but it is common on macOS because the system Python on older releases of OS X is linked to an old version of OpenSSL.

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

2 participants