How to get Caching Plug-ins to work on localhost with HTTPS?
Working on a localhost version of my https live site. Using the WP Super Cache plug-in.
Trying to test it [Test Cache
] with the feature with my live sites certificate I get the error
Fetching http://localhost/mysite/ to prime cache: FAILED
Errors: : cURL error 60: SSL certificate problem: unable to get local issuer certificate
Trying it with a self-signed certificate OpenSSL and cacert.pem in a httpd-ssl.conf and php.ini modified localhost WAMP configuration I get the error:
Fetching http://localhost/mysite/ to prime cache: FAILED
Errors: : cURL error 60: SSL certificate problem: self signed certificate
I even tried disabling SSL verification off in the WordPress init
add_action( 'init', 'sslfalse' );
function sslfalse() {
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
}
And I still get the same error regardless.
Anyone know of a possible solution to getting WP Super Cache (or any caching plug-in) to work with HTTPS on localhost?