Support » Plugin: Publish To Apple News » cURL error 35

  • Resolved cookco

    (@cookco)


    I have checked my PHP and Curl, reissued my Apple Keys and still cannot resolve the following error.

    There has been an error with your request: cURL error 35: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

    Anyone?

Viewing 8 replies - 1 through 8 (of 8 total)
  • We are getting the same when publishing and updating:
    There has been an error with your request: cURL error 35: SSL connect error

    Plugin Author Kevin Fodness

    (@kevinfodness)

    This seems like a server error—perhaps an outdated version of OpenSSL or similar? I believe the Apple News API uses a pretty new version of TLS with restricted cypher algorithms, so my guess is that you (or your hosting company) needs to run some updates on the server that hosts your site.

    Yes, I think you are right.

    I believe the Apple News API requires a minimum of TLS 1.2.

    We are running PHP 5.6.21 (which supports TLS 1.2) but it may have originally been compiled with an older version of OpenSSL which is limiting the TLS support.

    I’ll update OpenSSL and recompile PHP with the new library and update this topic once done.

    Many thanks.

    Nope. Confirmed that OpenSSL is up to date and we are now running a freshly compiled v5.6 version of PHP (compiled with the latest OpenSSL).

    It appears it’s an issue with running PHP on CentOS and can be fixed by forcing the PHP cURL connection to run at TLS 1.2. For example:
    curl_setopt($curl, CURLOPT_SSLVERSION, 6);

    I would like to modify the plugin myself and force cURL to use TLS 1.2. However, where are the references to cURL? I’ve looked in the plugin files and can’t find anything. Are you using WordPress built-in libraries? If so, I’ll have to edit those.

    I’m running PHP 7.2.7 with OpenSSL 1.1.0h dated March 27, 2018.

    My articles have been publishing fine for 2 years, until October. Last successful publish was October 16. I just checked my server with Qualys SSL Labs tester and scored A.

    RESOLVED! And I feel like an idiot. My website is HTML5 and PHP with a news section using WordPress. WordPress was still using an older version of PHP and OpenSSL. Went into IIS and changed the properties on the subfolder to point to the newer versions of everything.

    Plugin Author Kevin Fodness

    (@kevinfodness)

    Glad that you got it sorted out! @ianstephens56 is correct that the code does not use cURL directly—the plugin calls functions in WordPress core that may use cURL depending on server setup, so this isn’t functionality that can be modified by the plugin directly.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘cURL error 35’ is closed to new replies.