Httpie: Add an --insecure / -k option to disable SSL certificate verification

Created on 16 Jun 2014  ·  5Comments  ·  Source: httpie/httpie

When testing https to a test machine that has a self-signed certificate, it is handy to be able to disable certificate verification.

$ http https://192.168.4.137/test

http: error: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:547)

vs:

$ curl --insecure https://192.168.4.137/test
... got what I was expecting here ...
invalid

Most helpful comment

You can do http --verify=no https://129.168.4.137/test, at least with the current master branch.

All 5 comments

You can do http --verify=no https://129.168.4.137/test, at least with the current master branch.

Yes, --verify=no does the trick.

It would be nice if the the utility also accepted --verify=false

@jakubroztocil you're correct, it did work just now 🤷‍♂️

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jclem picture jclem  ·  6Comments

a-x- picture a-x-  ·  7Comments

rashthedude picture rashthedude  ·  3Comments

pyvotal-cguers picture pyvotal-cguers  ·  5Comments

Abdallah-Obaid picture Abdallah-Obaid  ·  4Comments