Precedence of TrustStore in Java

Solution Verified - Updated -

Issue

  • Which trustStore will be considered when trustStore is not specified using javax.net.ssl.trustStore ?
  • Will java use the default trustStore ($JAVA_HOME/lib/security/cacerts) if already a trustStore is mentioned using javax.net.ssl.trustStore system property ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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.