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.

FastHttpLocust gives ssl error with let's encrypt certs

See original GitHub issue
SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')

domains which have regular cert work okay. also the normal http client works okay.

os: alpine linux (with apk add ca-certificates) python: 3.7 locust master branch

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
heymancommented, Nov 13, 2019

I think changing this line:

https://github.com/locustio/locust/blob/cfad799de2a1aee928bd5d1da77e67ff1a599b70/locust/contrib/fasthttp.py#L91

to:

self.client = LocustUserAgent(max_retries=1, cookiejar=self.cookiejar, insecure=True, **kwargs)

should disable SSL verification, which I think should be okay for us to do in a client which is supposed to be as fast as possible (in a load testing tool).

0reactions
matticommented, Nov 14, 2019

thanks for fixing this, even if the fix is kinda weird 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Locust: Not able to send a POST Http request with OpenSSL ...
I am getting 403 HTTP error while sending a HTTP POST with SSL certificate. I tried to enable the debugging at the local...
Read more >
How to fix "LetsEncrypt SSL installation error ... - YouTube
Today in this video you will learn how to fix the issue " LetsEncrypt SSL installation error unable to reach mail.domain.com"Are you facing ......
Read more >
Source - GitHub
... FastHttpLocust gives ssl error with let's encrypt certs [\#1137](https://github.com/locustio/locust/issues/1137) - stop\_timeout defined in Locust class ...
Read more >
Release 1.0b2 - Locust Documentation
Let 'sbreakitdown: . ... It inherits from HttpUser which gives each user ... Optional path to TLS certificate to use to serve over....
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
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