Download the cacert.pem file from greenlf’s directions and place it in the Challonge plugin directory (wp-content/plugins/challonge/).
Open the plugin editor (Plugins > Editor) and select Challonge, and edit class-challonge-api.php.
Find this:
if (!$this->verify_ssl) {
// WARNING: this would prevent curl from detecting a 'man in the middle' attack
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYPEER, 0);
}
Add this just before that closing bracket:
} else {
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt ($curl_handle, CURLOPT_CAINFO, plugin_dir_path( __FILE__ ) . 'cacert.pem');
It should now look something like this:
if (!$this->verify_ssl) {
// WARNING: this would prevent curl from detecting a 'man in the middle' attack
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYPEER, 0);
} else {
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt ($curl_handle, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt ($curl_handle, CURLOPT_CAINFO, plugin_dir_path( __FILE__ ) . 'cacert.pem');
}
Save it and then go to the Challonge settings and enable SSL verification by unchecking the “Disable SSL verification” checkbox.
This is essentially what the 1.1.3 update will do, so please let me know if this doesn’t work for you!
Thanks!