COMMON_ISSUES.md

November 9, 2025 ยท View on GitHub

Error: SSL peer certificate or SSH remote key was not Ok

The proper fix to this, is to set one of these options:

  • CAINFO
  • CAPATH
  • CAINFO_BLOB

Or you can disable SSL verification with SSL_VERIFYPEER, but this is not recommended.

Starting with node-libcurl v5.0.0, every instance is initialized with default CA certificates from Node.js's tls module, by using the result of the "getCACertificates" function. This is done using CURLOPT_CAINFO_BLOB.