Quick fix for WordPress SSL Verify error

When your WordPress installation has problems with updating and retrieving files over SSL, because of outdated certificates, you can bypass this.
It`s actually a workaround, not a fix!

Just place the following code in your theme or plugin

// SSL fix
add_filter( 'https_ssl_verify', '__return_false' );
add_filter( 'https_local_ssl_verify', '__return_false' );

3 replies on “Quick fix for WordPress SSL Verify error”

Hi Ramoonus,

Those users that use shared hosting need to get their hosting company in action to fix the PHP configuration, or need to switch hosting companies. It’s that simple 😉

Two settings are important in your php.ini:

The value for curl.cainfo can also be set during runtime with curl_setopt(), and openssl.cafile using stream_context_set_option()

Have a look at:

Leave a Reply

Your email address will not be published. Required fields are marked *