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 How to setup Custom SSL with CyberPanel! - #2 by ZakiMDH - Blog Posts - CyberPanel Community 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?