Mac OS X 10.14 Mojave
Падает git clone с salsa.debian.org
Как вылечить?
$ GIT_CURL_VERBOSE=1 git clone https://salsa.debian.org/mwerlen/urlwatch.git
Cloning into 'urlwatch'...
21:01:31.255496 http.c:756 == Info: Couldn't find host salsa.debian.org in the .netrc file; using defaults
21:01:31.258345 http.c:756 == Info: Trying 209.87.16.44...
21:01:31.258378 http.c:756 == Info: TCP_NODELAY set
21:01:31.433673 http.c:756 == Info: Connected to salsa.debian.org (209.87.16.44) port 443 (#0)
21:01:31.433852 http.c:756 == Info: ALPN, offering http/1.1
21:01:31.433976 http.c:756 == Info: Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
21:01:31.442243 http.c:756 == Info: successfully set certificate verify locations:
21:01:31.442267 http.c:756 == Info: CAfile: /etc/ssl/cert.pem
CApath: none
21:01:31.442381 http.c:756 == Info: TLSv1.2 (OUT), TLS handshake, Client hello (1):
21:01:31.612222 http.c:756 == Info: TLSv1.2 (IN), TLS handshake, Server hello (2):
21:01:31.622397 http.c:756 == Info: TLSv1.2 (IN), TLS handshake, Certificate (11):
21:01:31.623416 http.c:756 == Info: TLSv1.2 (OUT), TLS alert, Server hello (2):
21:01:31.623589 http.c:756 == Info: SSL certificate problem: certificate has expired
21:01:31.623633 http.c:756 == Info: stopped the pause stream!
21:01:31.623650 http.c:756 == Info: Closing connection 0
fatal: unable to access 'https://salsa.debian.org/mwerlen/urlwatch.git/': SSL certificate problem: certificate has expired
upd.
Решил так
- https://curl.se/docs/caextract.html
- cp ~/Downloads/cacert.pem cert.pem