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?
$_SERVER['HTTPS']='on';
to your wp-config.phpReallySimpleSSL
plug-in to enable SSL on my site, so maybe this has something to do with it? I'll continue to mess around with it... might have to disable https all together on my local environment, but I'd prefer not to as to keep everything congruent.