The proper fix to this, is to set one of these options:
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.