title: Leiningen fails to install dependencies on OS X Yosemite: "InvalidAlgorithmParameterException (trustAnchors parameter must be non-empty)"
body: <p>I was installing Clojure on a Mac running OS X Yosemite (10.10.5). Following the recommended procedure, I first installed Leiningen. While running <code>lein deps</code> for the first time, I got a series of errors such as this:</p>
  
  <pre><code>Could not transfer artifact org.clojure:clojure:pom:1.8.0 from/to central (https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  </code></pre>
  
  <p>The same baffling error message appears in a number of other StackOverflow questions relating to specific software other than Leiningen, Clojure, and OS X  and the accepted answers in those cases appear to be very different from what worked for me (e.g. <a href="https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty">Error - trustAnchors parameter must be non-empty</a>), so I have created a new question for this specific problem to help others trying to install Clojure on a Mac.</p>