Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Certificate error installing jspm package from github (caused by wrong cert path??)

Tags:

git

jspm

Whilst my development environment works absolutely fine my build server is suffering with errors such as the following... although at some point it was all working fine too!

warn Error on lookup for github:aurelia/event-aggregator
     Error: fatal: unable to access 'aurelia/event-aggregator.git/': error setting certificate verify locations:
   CAfile: C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
   CApath: none

err  Error looking up github:aurelia/event-aggregator.

I noticed that the CAfile path was different to the one on disk (C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt) so copied the ssl folder from mingw64\ into mingw64\libexec and everything started working again.

Is this an appropriate fix?

Here are some of the versions of products I'm running:

jspm - 0.16.13
npm - 3.3.10
node - 4.2.1
like image 406
Phil Avatar asked Nov 02 '15 13:11

Phil


1 Answers

I executed the following command in a command window (run as admin), and it got me up and running. Still not sure this is the right answer, but it felt better than copying the folder:

git config --system http.sslcainfo "C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt"
like image 115
Tom Bogle Avatar answered Nov 15 '22 10:11

Tom Bogle