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

Hello

I have Cyberpanel installed with Ubuntu 20.04

Set up a certificate following the guide https://cyberpanel.net/blog/2018/05/03/how-to-setup-custom-ssl-with-cyberpanel/ with ZeroSSL.

When I put my domain on Facebook debug link preview it gave me the following error
“cURL error 60: SSL certificate problem: unable to get local issuer certificate”

Could someone help me figure it out?

Thank you.

Same issue

I found the solution was to add to the functions.php file the code that would solve the problem.

add_filter(‘https_ssl_verify’, ‘__return_false’);

Any other solution people?