title: scala sbt and corporate proxy - SunCertPathBuilderException
body: <p>When I try to use SBT some files cannot be downloaded with the following error:</p>
  
  <blockquote>
    <p>Server access Error: sun.security.validator.ValidatorException: PKIX
    path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to
    find valid certification path to requested target
    url=<a href="https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.0.0-M4/sbt-1.0.0-M4.jar" rel="noreferrer">https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.0.0-M4/sbt-1.0.0-M4.jar</a></p>
  </blockquote>
  
  <p>I have followed some advice on Stack Overflow and imported the corporate proxy SSL certificate with the java keytool as described in:
  <a href="https://stackoverflow.com/questions/6492122/ssl-certificate-problem-in-a-web-service-proxy">SSL certificate problem in a web service proxy</a></p>
  
  <p>It does not seems to affect the SBT tool. Does it look in a different keystore? Any ideas?</p>
  
  <p>If I paste the URL on the browser the file downloads.</p>
  
  <p>I get this error when simply running the SBT tool I have installed. When I try to create a SBT project on IntelliJ Idea and update it, it gives me the same error with different URLs. Same thing when trying to use the lightbend activator.</p>