title: Intellij/Gradle sync fails behind Corporate proxy
body: <p>I am behind a corporate firewall (Zscaler) which rewrites TLS traffic with its own certs.</p>
  
  <p>When I try to create a Gradle project in intellij, I receive the following error, even after importing the CA and intermediate certs into both Intellij (via the <code>Server Certificates</code> settings page) and into every Java trust store I can think of.</p>
  
  <pre><code>Sync Failed
  Download https://services.gradle.org/distributions/gradle-4.0-bin.zip   797ms
  Cause: unable to find valid certification path to requested target
  </code></pre>
  
  <p>I even imported them into Intellij's private JRE e.g.</p>
  
  <pre><code>C:\Progra~1\Java\jdk1.8.0_131\bin\keytool.exe -importcert -alias zscaler_root_ca     -keystore C:\Progra~1\Java\jdk1.8.0_131\jre\lib\security\cacerts -storepass changeit -file zscaler_root_ca.crt
  C:\Progra~1\Java\jre1.8.0_151\bin\keytool.exe -importcert -alias zscaler_root_ca     -keystore C:\Progra~1\Java\jre1.8.0_151\lib\security\cacerts -storepass changeit -file zscaler_root_ca.crt
  "C:\Users\jonathan.bates\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\173.4301.25\jre64\bin\keytool.exe" -importcert -alias zscaler_root_ca     -keystore "C:\Users\jonathan.bates\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\173.4301.25\jre64\lib\security\cacerts" -storepass changeit -file zscaler_root_ca.crt
  </code></pre>
  
  <p>Do I need to be doing anything else?</p>