title: javax.net.ssl.SSLException - the trustAnchors parameter must be non-empty
body: <p>When I try to run <code>./gradlew run</code> I keep getting:</p>
  
  <pre><code>Downloading https://services.gradle.org/distributions/gradle-4.4.1-bin.zip
  
  Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  </code></pre>
  
  <p>Tried <code>curl -v https://services.gradle.org/distributions/gradle-4.4.1-bin.zip</code>
  and works just fine</p>
  
  <pre><code>Connected to services.gradle.org (2400:cb00:2048:1::6810:aba6)
  successfully set certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
  </code></pre>