title: how to add certificate to Java trust store if keytool is not provided
body: <p>There's a tool <a href="https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/" rel="nofollow noreferrer">sonar-scanner</a> 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 <code>keytool</code>. But there's no <code>keytool</code> in the shipped JRE.</p>
  
  <p>I'm new to Java. Is there any suggestions of how to add the certificate in this case?</p>
  
  <p>Thanks!</p>