Title: Getting WP Super Cache to work on localhost with HTTPS
Last modified: January 11, 2018

---

# Getting WP Super Cache to work on localhost with HTTPS

 *  [ekko848](https://wordpress.org/support/users/ekko848/)
 * (@ekko848)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/getting-wp-super-cache-to-work-on-localhost-with-https/)
 * 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](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjBnaahgM_YAhUBylMKHYavClYQFggnMAA&url=https%3A%2F%2Fslproweb.com%2Fproducts%2FWin32OpenSSL.html&usg=AOvVaw1W9uJ7nTOG7yf4T-zZGmia)
   and [cacert.pem](https://curl.haxx.se/docs/caextract.html) 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](https://wordpress.org/support/users/ekko848/)
 * (@ekko848)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/getting-wp-super-cache-to-work-on-localhost-with-https/#post-9862560)
 * 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.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=1095422)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 1 reply
 * 1 participant
 * Last reply from: [ekko848](https://wordpress.org/support/users/ekko848/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/getting-wp-super-cache-to-work-on-localhost-with-https/#post-9862560)
 * Status: not resolved