Resolving error "sun.security.validator.ValidatorException: TrustAnchor with subject "CN=***, L=***, O=***" is not a CA certificate"

Solution Verified - Updated -

Issue

  • After uprading to OpenJDK 1.8u242 or later getting ValidatorException for self signed certificates added to cacerts or keystore specified with javax.net.ssl.trustStore

Environment

  • OpenJDK 1.8u242 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content