question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 ...

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

102reactions
matlehcommented, Jun 16, 2014

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

53reactions
jakubroztocilcommented, Jun 28, 2014

Yes, --verify=no does the trick.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ignore invalid and self signed ssl connection errors ...
If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. Here is one useful example where...
Read more >
Ignore SSL Certificate Checks with Curl - ReqBin
To bypass SSL certificate validation for local and test servers, you can pass the -k or --insecure option to the Curl command. This...
Read more >
How to ignore SSL certificate error in cURL - Simplified Guide
Steps to disable SSL certificate verification in cURL: · Run curl against website with SSL error. · Use insecure option for curl to...
Read more >
Curl: disable certificate verification - Server Fault
(SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made ...
Read more >
Curl Ignore SSL certificate warning using the -k or --insecure flag
If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. The -k or --insecure flag can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found