JCMais / node-libcurl

libcurl bindings for Node.js
https://npmjs.org/package/node-libcurl
MIT License
666 stars 118 forks source link

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

Closed jhoogstraat closed 8 months ago

jhoogstraat commented 2 years ago

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
JCMais commented 2 years ago

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 commented 8 months ago

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.