
컬에 다음 오류가 발생했습니다.
curl https://www.google.com -v
* About to connect() to www.google.com port 443 (#0)
* Trying 2607:f8b0:400e:c01::67...
* Failed to connect to 2607:f8b0:400e:c01::67: Network is unreachable
* Trying 74.125.28.103...
* Adding handle: conn: 0x4041f868e0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x4041f868e0) send_pipe: 1, recv_pipe: 0
* Connected to www.google.com (74.125.28.103) port 443 (#0)
* error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* Closing connection 0
네트워크에 연결할 수 없음을 무시하세요. 네트워크에 연결할 수 있더라도 모든 https:// URL에서 발생합니다.
인증서를 수동으로 설치하지 않을 것입니다. 자동으로 인증서를 받아야 하기 때문입니다... 아이디어가 있습니까?
답변1
고치다. 무슨 문제인지는 모르겠지만 인증서(ca-certificates) 패키지와 관련된 문제였습니다.
ca-certificates
추가 하고 실행 하면 해결되었습니다.update-ca-certificates
내가 사용했던 배포판은 Alpine LInux이므로 명령은 다음과 같습니다.
apk add ca-certificates
update-ca-certificates
데비안에서도 마찬가지로 다음과 같아야 합니다:
apt-get install ca-certificates
update-ca-certificates