I am adding a cert to the Java keystore and I get the following warning. The command is successful.
keytool -import -trustcacerts -keystore /usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts -storepass changeit -noprompt -alias my_root_ca.pem -file /usr/share/ca-certificates/foo/my_root_ca.pem
The warning is:
Warning: use -cacerts option to access cacerts keystore
How do I get rid of this warning?
Thanks
The cacerts Certificates File A certificates file named cacerts resides in the security properties directory: Oracle Solaris, Linux, and OS X:: JAVA_HOME /lib/security Windows: java.home\lib\security java.home is the runtime environment directory, which is the jre directory in the JDK or the top-level directory of the Java Runtime Environment (JRE).' – Sweder Schellens Jul 29 '22 at 09:36