LINUX.ORG.RU
решено ФорумAdmin

Как вылечить «SSL certificate problem: certificate has expired» при git clone в Mac OS X Mojave?

 , ,


0

1

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.
Решил так

★★

Последнее исправление: pru-mike (всего исправлений: 2)

УМВР

% git clone https://salsa.debian.org/mwerlen/urlwatch.git
Cloning into 'urlwatch'...
remote: Enumerating objects: 274, done.
remote: Counting objects: 100% (274/274), done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 1189 (delta 141), reused 240 (delta 107), pack-reused 915
Receiving objects: 100% (1189/1189), 452.33 KiB | 603.00 KiB/s, done.
Resolving deltas: 100% (685/685), done.

Хотя, это на 11.6. Что бы вылечить на более старых версиях, скорее добавить их Root-CA.

beastie ★★★★★
()
Последнее исправление: beastie (всего исправлений: 1)
Ответ на: комментарий от beastie

Что бы вылечить на более старых версиях, скорее добавить их Root-CA.

Скорее всего, не заработает из-за старой версии LibreSSL/OpenSSL. Коллеге в этой ситуации помогло ручное удаление протухшего сертификата DST Root CA X3.

Vovka-Korovka ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.