SSL errors when testing certain HTTPS sites
See original GitHub issueI’m getting SSL errors sometimes when using certain HTTPS sites using locust:
In [26]: u
Out[26]: <locust.core.HttpLocust at 0x104f94cd0>
In [27]: u.host
Out[27]: 'https://www.dodopal.com'
In [28]: res = u.client.get('/'); res.__dict__
Out[28]:
{'_content': None,
'_content_consumed': True,
'cookies': <RequestsCookieJar[]>,
'elapsed': datetime.timedelta(0),
'encoding': None,
'error': requests.exceptions.SSLError(requests.packages.urllib3.exceptions.SSLError(ssl.SSLError(1,
u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'))),
'headers': {},
'history': [],
'raw': None,
'reason': None,
'request': <PreparedRequest [GET]>,
'status_code': 0,
'url': None}
Other sites seem to be fine:
In [35]: u.host = 'https://www.eff.org'
In [36]: u.client.get('/')
Out[36]: <Response [200]>
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
A Simple Explanation of SSL Certificate Errors & How to Fix ...
An SSL certificate error occurs when a web browser can't verify the SSL certificate installed on a site. Rather than connect users to...
Read more >8 Ways to Fix SSL Connection Errors on Various Browsers ...
Open the Chrome browser and access its Settings menu. · Go to Privacy and security. · Tap on Clear browsing data. · Select...
Read more >What Do SSL Certificate Errors Mean: Causes & How to Fix ...
7. Untrusted Certificate Authority. This error means that the browser cannot find the root certificate in the local trusted certificate store. ...
Read more >HTTP Server Test Fails with SSL Error
On the Test Settings page, select the HTTP server test or page load test, and uncheck the Verify SSL certificate box under the...
Read more >FIX: Certificate error when you try to visit an SSL Web site by ...
This issue occurs if the SSL Web site that you try to visit is located in a zone that has more restricted permissions...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How to get rid from “SSL: CERTIFICATE_VERIFY_FAILED” Error
On Windows, Python does not look at the system certificate, it uses its own located at ?\lib\site-packages\certifi\cacert.pem.
The solution to your problem:
I’m not sure what this means: “paste your domain validation certificate at the end of the file”. When I open my domain.crt up in notepad it’s all encrypted. 0‚0‚ ]º–l á“GèaÜ. That’s what I’d be adding to the locust pem file. Can I get some clarification on this?