My Oracle Support Banner

Troubleshooting "sun.security.validator.ValidatorException: PKIX path building failed" Exceptions (Doc ID 2924538.1)

Last updated on FEBRUARY 08, 2023

Applies to:

Java SE JDK and JRE - Version 8 and later
Information in this document applies to any platform.

Purpose

 This document is a support pattern describing how to troubleshoot and fix the following Java exception:

Caused By: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

Troubleshooting Steps

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
Troubleshooting Steps
 Problem Description
 Common Causes
 Resolving Certificate Store Errors
 Resolution
 List Certificates
 Add Certificates
 Script to automate the above
 Custom Certificate Store Path
 Debugging
 Other Less Common Causes
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.