node-libcurl icon indicating copy to clipboard operation
node-libcurl copied to clipboard

curly: error setting certificate file: /etc/ssl/certs/ca-certificates.crt on Fedora 35

Open jhoogstraat opened this issue 3 years ago • 1 comments

This node script produces curl error 77: const response = await curly.get(url). curl $URL does work however.

The file ca-certificates.crt does not exist on my machine, instead ls /etc/ssl/certs/ prints

Permissions Size User Date Modified Name
lrwxrwxrwx@   49 root 13 Dez  2021  ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
lrwxrwxrwx@   55 root 13 Dez  2021  ca-bundle.trust.crt -> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

jhoogstraat avatar Feb 09 '22 14:02 jhoogstraat

Few ways to solve this:

  1. create a symlink to the path used by the addon's libcurl,
  2. Set the CAINFO option pointing to the correct location of the certificate.

JCMais avatar Feb 12 '22 12:02 JCMais

To keep the maintainability of this project, I am closing old tickets. If the issue continues with the latest version of node-libcurl, please feel free to create a new ticket.

JCMais avatar Feb 13 '24 21:02 JCMais