• Working on a localhost version of my https live site.

    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 properly configured 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.

    Is there a way to get WP Super Cache to work on localhost along with HTTPS?

Viewing 1 replies (of 1 total)
  • Thread Starter ekko848

    (@ekko848)

    Got it working.

    Needed to add my OpenSSL certificate to /wp-includes/certificates/ca-bundle.crt

    Works on HTTPs now 🙂

Viewing 1 replies (of 1 total)

The topic ‘Getting WP Super Cache to work on localhost with HTTPS’ is closed to new replies.