Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Getting below exception while accessing TestRail using Java bindings

Exception in thread "main" PKIX path building failed: unable to find valid certification path to requested target

I got the above error while accessing the TestRail using Java bindings. Looks like a SSL Certificate issue. Can you please help me on this?


Hi Sanjay,

Thanks for your posting. Yes, this looks like an SSL certificate issue. Do you use a custom SSL certificate with a self-hosted TestRail instance? It could also be that your Java environment is missing some SSL certificates. Here’s a good overview of this issue and possible solutions and you would likely need to add a custom key store: