AvinashKunte (Customer) to rsaSFDCadmin (RSA): asked a question.

Default truststore issue
While importing certificates in default trust store getting below error:

[root@ip-10-88-6-102 cert]# keytool -import -v -noprompt -trustcacerts -alias
root -file root.cer -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass
changeit
keytool error: java.lang.Exception: Keystore file exists, but is empty:
/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/security/cacerts
java.lang.Exception: Keystore file exists, but is empty:
/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/security/cacerts
at sun.security.tools.keytool.Main.doCommands(Main.java:762)
at sun.security.tools.keytool.Main.run(Main.java:370)
at sun.security.tools.keytool.Main.main(Main.java:363)

\------------------------------------------------------------

[root@ip-10-88-6-102 ~]# echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0-openjdk
[root@ip-10-88-6-102 ~]# echo $PATH
/usr/lib/jvm/java-1.8.0-openjdk/bin:/sbin:/bin:/usr/sbin:/usr/bin
[root@ip-10-88-6-102 ~]# javaversion
bash: javaversion: command not found
[root@ip-10-88-6-102 ~]# java-version
bash: java-version: command not found
[root@ip-10-88-6-102 ~]# java -version
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)

Please let me know if anyone has idea what next step needs to be performed.

  • Noted that the case 02396103 for this issue was closed. The resolution
    indicates a root certificate was trusted but it does not state what
    certificate or what trust store it was added to.
    Selected as Best
  • Noted that the case 02396103 for this issue was closed. The resolution
    indicates a root certificate was trusted but it does not state what
    certificate or what trust store it was added to.
    Selected as Best