Closed woochica closed 2 years ago
@woochica Some other Elm users have noticed a similar problem, which turned out to be their version of their Mac not supporting these certificates anymore (or something like that, my memory is a bit fuzzy).
I am unclear as to why it only happens with elm-json
(and I imagine a select number of other tools), but basically a solution is to upgrade the version of your Mac installation. That has worked well for people that have tried it and reported back.
If you are not on a Mac, then I don't know what the issue is.
@jfmengels Good to know, thanks for sharing it. Can I read more about these cases somewhere? I'm on OSX and I'm curious about the affected versions. I have 10.14, and I'm aware that older versions can have certificate issues. It's also strange why I encounter this problem with this very specific software only.
I found the problem and a solution. It was indeed an OSX specific issue (Mojave affected). I came across a StackOverflow post where they described that very likely /etc/ssl/cert.pem
contains the expired root cert. I could confirm that this was the case on my computer by running curl -v https://package.elm-lang.org 2>&1 | grep CAfile
. Then simply by removing it from the cert file, it all works again.
@woochica I don't have more information. It was mostly shared on the Elm Slack and I think the history of that conversation disappeared already.
I'm glad you found the way to solve your issue though, and thanks for showing a workaround (that doesn't require upgrading your entire Mac) :pray:
I started to recieve "Failed to fetch versions from package.elm-lang.org" errors when running elm-json.
Certificate Expired
error.