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

Better Stack Team
Updated on May 4, 2022


Received SSL certificate problem: unable to get local issuer certificate error when executing curl request to a secure HTTPS destination.

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.


  1. Download the latest cacert.pem from
  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:

Got an article suggestion? Let us know
Explore more
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

We are hiring.

Software is our way of making the world a tiny bit better. We build tools for the makers of tomorrow.

Explore all positions →

Reliability is the
ultimate feature

Delightful observability tools that turn your logs & monitoring into a secret weapon for shipping better software faster.

Explore Better Stack