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

TLS 1.2 support #536

Closed
rashthedude opened this issue Nov 4, 2016 · 3 comments
Closed

TLS 1.2 support #536

rashthedude opened this issue Nov 4, 2016 · 3 comments

Comments

@rashthedude
Copy link

I'm passing the option: "--ssl=tls1.2" but this is the error I'm getting back "http: error: argument --ssl: invalid choice: u'tls1.2' (choose from 'ssl2.3', 'ssl3', 'tls1')"

Looks as though it's not supported. The version I'm using is 0.9.6. Can anyone give me the heads up here?

Regards,
Rashid

@jkbrzt
Copy link
Member

jkbrzt commented Nov 4, 2016

The actually available set of protocols may vary depending on your OpenSSL installation.
https://httpie.org/docs#ssl-version

A quick way to find out what the available protocols are, is to run http --help. The --ssl option will list all the protocols actually supported by your system. For example, on my macOS/Homebrew installation it looks like this:

$ http --help | grep ' --ssl'
  --ssl {ssl2.3,ssl3,tls1,tls1.1,tls1.2}

You can actually also see them in the error message :)

@sigmavirus24
Copy link

@rashthedude is this on Ubuntu 10.04? If so, the problem is your version of Python is so incredibly old that it's ssl module does not support tls1.2. You should really not be using lucid if you care about security.

You might be able to install PyOpenSSL, pyasn1, and python-ndghttpsclient from pip to get better support but if those are not installable, you should really abandon the notion of using 10.04.

@rashthedude
Copy link
Author

@jkbrzt and @sigmavirus24 thanks a lot for the swift response. I think the only thing that makes sense at this point is upgrading and abandoning Lucid.

@jkbrzt jkbrzt closed this as completed Nov 4, 2016
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