<- Test Directory

Disable SSL Verification

Examples of how to prevent SSL verification on your tests.


If you have an SSL certificate that is failing a verification (self-signed, or something strange) you can disable checks in your test easily. Below are some examples of ways you can disable it, not an entire test configuration. If you need further help contact us for support.

Notes on SSL verification

SSL verification is not really necessary on a load test, and you shouldn't panic about disabling it if your certificate is invalid. We still have to simulate the full SSL negotiation, and the load test will still be completely valid. This is often useful during test or development cycles.


def on_start(self):
    self.client.verify = False
def login_page(self):
    self.client.post("/api/login", verify=False, {"Password":"xxxxx"})

The primary function is adding the "verify=False" section to either your on_start client definition, or, if your self.client.post or self.client.get requests.

This guide is part of the LoadForge Directory, an index of locustfile's for use with LoadForge website and API load tests. We also provide a wizard to generate tests, and onboarding assistance for clients. Contact us should you have any questions.

LoadForge provides load testing and stress tests for websites, APIs and servers. It uses your cloud account to rapidly scale large numbers of simulated users to load test your website, store, API, or application for cheap - just cents per test!

For more help on Tests please see our official documentation. Logged in users can also use our wizard to generate a locustfile, or you can record your browser steps.

Ready to run your test?
Start your first test within minutes.