# Solved: (cron) info (No MTA installed, discarding output) error

## Problem

Received _SSL certificate problem: unable to get local issuer certificate_ error
when executing `curl` request to a secure HTTPS destination.

[info]
## 🔭 Want to get alerted when your SSL certificate doesn't work?
Go to [Better Stack](https://betterstack.com/uptime/) and start monitoring in 5 minutes.
[/info]

### Cause of the problem

If you get _SSL certificate problem: unable to get local issuer certificate_
error, it's an indication that your root and intermediate certificates on the
system are not working correctly or not set up correctly.

## Solution

1. Download the latest `cacert.pem`
   from [https://curl.haxx.se/ca/cacert.pem](https://curl.haxx.se/ca/cacert.pem)
2. Add the `--cacert /path/to/cacert.pem` flag to the curl command to tell curl
   where the local Certificate Authority file is.

**If you are using PHP:**

Add the following line to the php.ini file or users.ini if you are on the shared
hosting:

```bash
curl.cainfo="/path/to/downloaded/cacert.pem"
```

[ad-uptime]