Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8331479

Providing an invalid path to a truststore does not propagate any error

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      JDK17/JDK21

      A DESCRIPTION OF THE PROBLEM :
      When overriding the default truststore using Djavax.net.ssl.trustStore, if an invalid path is provided no error is thrown up to the running application to indicate this. Instead it looks like the Certificate libraries will silently fail and load the DummyX509TrustManager.
      The client should be aware that the truststore provided could not be found, with a fileNotFound or key/truststore error.
      Could this be looked into and verified/raised? It feels like this would be relevant to a number of issues and posts raised on the web relating to misconfigured paths.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: