WordPress.org

Support

Support » Plugins and Hacks » Challonge » [Resolved] SSL error

[Resolved] SSL error

  • Hi,

    I’ve just installed this plugin and went to Settings to enter the API. After I generate it (at challonge.com) and paste in API Key field in plugin settings i get this notification:

    SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.

    I’ve tried disable SSL vertification, then it says that API key is valid, but I don’t see any of the tournamets, o management menus…

    https://wordpress.org/plugins/challonge/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Don’t know how, but solved.

    Plugin Author zavaboy

    @zavaboy

    If you find out what you did differently that caused your issue, please let me know. Anyway, I’m happy you got it working. 🙂

    I’m having the same exact problem with same error code. any ideas on how to fix?

    Plugin Author zavaboy

    @zavaboy

    I’m afraid I can offer little help with SSL errors. You may have better luck with a Google search.

    If I come up with a possible solution, I’ll be sure to post it here.

    Thanks for the feedback! 🙂

    open up your PHP.INI file and add the following line:

    curl.cainfo = “PATH_TO/cacert.pem”

    Get cacert.pem file from
    http://curl.haxx.se/docs/caextract.html
    and place it in the PATH_To.

    Example:

    I am running the WAMPDeveloper Stack on Windows from DevSide.net

    I added the following line at the bottom of my PHP.INI file
    curl.cainfo = “C:\WampDeveloper\Tools\curl\cacert.pem”

    Then I placed the cacert.pem downloaded above in:
    c:\wampdeveloper\tools\curl

    Works perfectly for most stacks, BUT NOT ALL, and resolves the issue for any plug-in looking for an updated CA.

    I would still like to see the developer properly include a cacerts.pem with the plug-in.

    Hope this helps,

    It works for me, but i don’t know if i’m supose to see a new Menu after i’ve activated the plug-in or not?
    There is no screenshot of the interface we’re supposed to see

    Hello guys!

    I got a similar SSL-error after I moved from linux to a windows server:

    SSL certificate problem: unable to get local issuer certificate

    If I “disable SSL”, I get the green string “verified”, but then there’s just the widget-text: “no api key”.

    I already tried the tip above, but it did not work…

    Plugin Author zavaboy

    @zavaboy

    This should be fixed in the 1.1.3 update which I plan to release sometime this week.

    Thanks for the help, everyone! 🙂

    Sounds great, but I currently have a tournament running – so may there be a quick fix until the update is released? 🙂

    Plugin Author zavaboy

    @zavaboy

    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!

    Plugin Author zavaboy

    @zavaboy

    Version 1.1.3 was released with this fix.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] SSL error’ is closed to new replies.
Skip to toolbar