0

There's a tool sonar-scanner written in Java. It has a JRE shipped with it. Currently I met an issue when using this tool, the solution leads to: I need to add certificate to Java trust store with keytool. But there's no keytool in the shipped JRE.

I'm new to Java. Is there any suggestions of how to add the certificate in this case?

Thanks!

mCY
  • 2,731
  • 7
  • 25
  • 43
  • The keytool is part of the JDK you can install one and use the keytool of it – Jens Mar 04 '20 at 06:00
  • The `keytool` is part of JRE 1.8 and all other JREs I have ever used back to the old security tool whatever it was called in 1.1. Use that. – user207421 Mar 04 '20 at 06:54
  • find at path {jre}\bin\keytool. path to jre by default you can find run "java -verbose -version" – Alexander Prisadkov Mar 04 '20 at 08:26
  • Thanks for the reply! Later I found out I can use `keytool` to create the trust store e.g. in my macbook, and use that to replace the one shipped with sonar-scanner in `jre/lib/security/cacerts`. [reference](https://stackoverflow.com/a/373307/1476512) – mCY Mar 04 '20 at 08:27

0 Answers0