leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
2019-09-16T21:05:39.003500Z

Our internal Nexus repository is secured with a self-signed certificate. Does anyone know if there's a way to specify a truststore to use when pulling deps with lein? I'm trying to get around a 'unable to find valid certification path to requested target' error when running lein deps.

danielcompton 2019-09-16T21:06:19.004200Z

Can you add it to the installed Java trust store?

danielcompton 2019-09-16T21:06:34.004700Z

Can’t remember if that’s a thing or not

danielcompton 2019-09-16T21:08:46.006200Z

Lein also has support for this directly:

;; If you configure a custom repository with a self-signed SSL
  ;; certificate, you will need to add it here. Paths should either
  ;; be on Leiningen's classpath or relative to the project root.
  :certificates ["blueant.pem"]
from the sample.project.clj file

alexmiller 2019-09-16T21:08:47.006300Z

you can add it to the java trust store

👍 1
alexmiller 2019-09-16T21:09:11.007200Z

that's what Maven would tell you to do

danielcompton 2019-09-16T21:09:18.007600Z

If it was me, I’d prefer to add it to the Java trust store, this is a more durable method IMO

2019-09-16T21:15:08.009200Z

Oh, I don't know how I missed that :certificates key. I'll do the trust store thing if this ends up working. Thanks you two!