
Estou tendo esse erro com curl:
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
Ignore que a rede está inacessível... isso acontece com todos os URLs https://, mesmo que a rede esteja acessível.
Não vou instalar manualmente os certificados, pois deve obtê-los automaticamente... ideias?
Responder1
Consertar. Não sei qual era o problema, mas estava relacionado ao pacote de certificados (ca-certificates).
Foi corrigido adicionando ca-certificates
e executandoupdate-ca-certificates
A distro que eu estava usando é Alpine LInux, então os comandos são:
apk add ca-certificates
update-ca-certificates
No debian, deveria ser:
apt-get install ca-certificates
update-ca-certificates