cURL error 60: SSL certificate: unable to get local issuer certificate

The error message "cURL error 60: SSL certificate: unable to get local issuer certificate" typically occurs when cURL is unable to verify the SSL certificate of the remote server. This can happen if the SSL certificate is self-signed or if the certificate authority (CA) that issued the certificate is not recognized by the system.

To resolve this issue, you can try the following solutions:

  1. Disable SSL verification: This is not recommended for production environments, but you can temporarily disable SSL verification to bypass the error. You can do this by setting the CURLOPT_SSL_VERIFYPEER option to false in your cURL request. However, keep in mind that this will make your connection insecure and vulnerable to man-in-the-middle attacks.

  2. Provide the CA certificate: If you have the CA certificate that issued the SSL certificate, you can provide it to cURL using the CURLOPT_CAINFO option. This will allow cURL to verify the SSL certificate against the provided CA certificate.

  3. Update the CA certificate bundle: cURL uses a bundle of CA certificates to verify SSL certificates. If the CA certificate that issued the SSL certificate is not included in the bundle, you can update the bundle with the latest CA certificates. You can download the latest bundle from the cURL website and set the CURLOPT_CAINFO option to the path of the updated bundle.

Please note that the specific solution may depend on the programming language or framework you are using with cURL. Make sure to consult the documentation or resources specific to your development environment for more detailed instructions.