title: Java SSL - Certificates added to CACERTS do not work after restart
body: <p>I am setting up a new machine with eclipse Oxygen 4.7. I spent some time getting certificates added to CACERTS so that I could access an external maven repository and access the eclipse marketplace. On Friday afternoon I had everything working. I could reach the eclipse marketplace and maven was able to download my dependencies.  Over the weekend I rebooted my machine and my certificates no longer work.  I am getting...</p>
  <blockquote>
  <p>Caused by:
  sun.security.provider.certpath.SunCertPathBuilderException: unable to
  find valid certification path to requested target.</p>
  </blockquote>
  <p>Am I missing a step or doing something wrong when adding my certs?  These are my steps...</p>
  <ol>
  <li><p>Download the cert for the maven repo from the website. I can navigate to the site fine in my browser.  I use the certificate export tool. I export the cert as base 64.<br />
  <a href="https://i.stack.imgur.com/scV3t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/scV3t.png" alt="enter image description here" /></a></p>
  </li>
  <li><p>I add the cert to CACERTS using keytool.</p>
  </li>
  </ol>
  <p><a href="https://i.stack.imgur.com/bK6pX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bK6pX.png" alt="enter image description here" /></a></p>
  <ol start="3">
  <li>If I restart eclipse the cert will now get picked up and on the first try I am able to connect to the maven repo.  This is true for the marketplace certificate as well.  If I restart my machine after this (might also be triggered by just restarting eclipse again, I will test this) the certs no longer works.</li>
  </ol>
  <p>I only have one version of java installed, jdk1.8.0_202.</p>
  <p><a href="https://i.stack.imgur.com/F62uQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F62uQ.png" alt="enter image description here" /></a></p>
  <p>I tried explicitly setting the path to CACERTS in the eclipse.ini file but that did not make a difference.  I do have the settings.xml set up for maven.  As I have issues connecting to both my maven repo and the eclipse market place I do not think settings.xml is the culprit. Any ideas would be most appreciated. Thanks.</p>