請勿使用 JCEKS Keystore 格式 識別 JCEKS keystore 格式的使用, OpenJDK 11+ 和 Semeru runtimes 不支援此格式。 安全 OpenJDK 11+ 和 Semeru runtimes 不再支援 JCEKS keystore 格式。 遷移到 PKCS12 以避免相容性問題。
請勿使用 JCEKS Keystore 格式

IBM 8 中支援 JCEKS keystore 格式,但在 OpenJDK 11+ 和 Semeru runtimes 中不可用。 使用 KeyStore.getInstance("JCEKS" ) 的應用程式可能會在遷移後發生故障。

此規則偵測並標示 KeyStore.getInstance("JCEKS" ) 的使用。 開發人員應更新其應用程式,以使用 PKCS12 以達到相容性。

受影響程式碼的範例:

KeyStore keystore = KeyStore.getInstance("JCEKS" );

建議更換:

KeyStore keystore = KeyStore.getInstance("PKCS12" );

若要將現有的 JCEKS keystore 轉換為 PKCS12 ,請使用下列指令:

keytool -importkeystore -srckeystore mykeystore.jceks -destkeystore mykeystore.p12 -srcstoretype JCEKS -deststoretype PKCS12

如需相關資訊,請參閱下列資源: