I'm getting this error in a log file created by WooCommerce
"The SSL certificate for the host could not be verified."
The error is being generated by WordPress' file /wp-includes/class-http.php
http://hookr.io/3.8.2/classes/wp_http_streams/
I've tried setting the below in my functions file to disable SSL verification, but i'm still getting the error
add_filter( 'https_ssl_verify', '__return_false' );
add_filter( 'https_local_ssl_verify', '__return_false' );
On line 834 of class-http.php
I tested changing this line
$connect_host = $secure_transport ? 'ssl://' . $connect_host : 'tcp://' . $connect_host;
To
$connect_host = $secure_transport ? 'sslv3://' . $connect_host : 'tcp://' . $connect_host;
The change is sslv3
I need this for connecting to authorize.net. Is there a filter I can use, to override the method in the class, if so which? I know enough to not modify core code, this was only for testing.
Thanks