Why does my Java application throw a SSLHandshakeException: "unable to find valid certification path to requested target" when using SSL?

Solution Verified - Updated -

Issue

  • Our JBoss application or EAP component is generating the following error message while trying to connect to a URL:

    javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: 
      sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    
  • Getting sun.security.validator.ValidatorException: PKIX path building failed after upgrading Red Hat JBoss EAP or installing new application.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x
  • Red Hat JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.