title: cacerts - JDK or JRE
body: <p>I need to add a trusted certificate into <code>cacerts</code> on one of my servers.</p>
  
  <p>I can see that it goes under <code>$JAVA_HOME/jre/lib/security/</code> from other <a href="https://stackoverflow.com/questions/8980364/how-do-i-find-out-what-keystore-my-jvm-is-using">questions</a></p>
  
  <p>But I also have a second <code>cacerts</code> file, two locations are:</p>
  
  <pre><code>C:\Program Files\Java\jdk1.8.0_92\jre\lib\security
  
  C:\Program Files\Java\jre1.8.0_92\lib\security
  </code></pre>
  
  <p>Up to now, I've been adding any certificates into both, which is probably not correct. Is it definitely the first option, and if so, what's the use of the second one?</p>