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

Update the store type created in TrustStoreDescriptor.createInstance

XMLWordPrintable

      The format for the JDK default truststore (cacerts) changed from JKS to PKCS12 in JDK 18. See JDK-8275253

      sun.security.ssl.TrustStoreManager.TrustStoreDescriptor#createInstance creates the "cacerts' trustore with a keystore type of 'KeyStore.getDefaultType()' - this could be corrected since cacerts in JDK 17 and earlier is still in the JKS format. (and the default type is pkcs12 since JDK 9 - see JDK-8044445)

      For older JDK release families Keystore providers still need to be JKS aware. The JDK provider has an interop mode built in but some third party providers may not have an interop fallback mode to test between PKCS12 and JKS formats.

            coffeys Sean Coffey
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: