You might need to disable SSL verification if you are working on a local installation to avoid errors.
To do so, add this code to your theme’s functions.php:
It is not recommended to disable SSL on a live website. It can cause security issues. Make sure you have a valid SSL certificate active on your website.