The /usr/share/ssl/certs/ca-bundle.crt file, which is used for server certificate validation, is the default certificate bundle that curl looks for when the --cacert option was not used.
This error may also occur if the date and time on the server are incorrect.