• Resolved hansopanso

    (@hansopanso)


    Hi,

    My site is backed up once a week but this night I had 3 errors. (all the same b.t.w.)

    [22-dec-2013 01:05:12] 1. Try to send backup file to Dropbox …
    [22-dec-2013 01:05:12] ERROR: Dropbox API: (35) Unsupported SSL protocol version

    The I noticed BackWPup got a new version. So I upgraded to 3.1 and tried to reauthenticate Dropbox.
    I got this error:
    Dropbox API: (35) Unsupported SSL protocol version

    Any idea how I can solve this?

    Cheers in advance.

    https://www.ads-software.com/plugins/backwpup/

Viewing 15 replies - 16 through 30 (of 44 total)
  • Hello,
    can u test the 3.1.2-bet2 again? I have changed the special things for Dropbox cert.

    hi Daniel,
    I tried 3.1.2-bet2.
    still the same error ??

    Dropbox API: (35) Unsupported SSL protocol version

    isnt there a usefull way to debug the error?

    seems to be a known bug in the latest curl update – see https://sourceforge.net/p/curl/bugs/1319/

    maybe its gone with the next release

    I pulled the latest src updates from the git repo.
    Nop, still Dropbox API: (35) Unsupported SSL protocol version ??

    Would it be possible BTW to add a flag such that this release of backwup would work again on a host with a self signed SSL certificate (so in src use of curl -k). As it did work up till 3.08

    Hello, i changed the version on Github again. now you can add a filter
    add_filter( 'backwpup_cacert_bundle', '__return_false' ); to disable ssl securty functions.

    Hi Daniel,

    Is your last post a work-around to get dropbox working?
    Where do i put this, in which functions file? The plugin or the theme?

    Thanks!

    i temporarily commented out all occurences of

    curl_setopt( $ch, CURLOPT_SSLVERSION, 3 )

    in inc/class-destination-dropbox.php

    this made the errormsg with unsupported ssl version go away but brings me to a new error message after the dropbox login:

    Dropbox API: (77) error setting certificate verify locations: CAfile: /var/www/localhost/htdocs/_wp/wp-content/plugins/backwpup-master/vendor/dropbox-trusted-cert.crt CApath: /var/www/localhost/htdocs/_wp/wp-content/plugins/backwpup-master/vendor/

    Using:

    • WordPress version 3.8.1
    • BackWPup version 3.1.2-beta3
    • PHP version 5.5.7-pl0-gentoo
    • MySQL version 5.1.70
    • cURL version 7.34.0
    • cURL SSL version OpenSSL/1.0.1e

    Edit:
    After copying the dropbox-trusted-cert.crt to ./vendor it worked.
    File seems to be missing in 3.1.2-beta3 but is included in 3.1.2-beta2.

    Hello, Sorry i have forgotten to remove two lines.

    @rpielanen: you need the version from Github and wirt a plugin like:

    <?php
    /**
     * Plugin Name: Disable BackWPup SSL cer bundle
     * Description: Reduce security for SSL connections
     * Author: You
     * Version: 0.0.1
     */
    if ( ! defined( 'ABSPATH' ) )
     exit;
    
    /**
     * Load plugin.
     *
     */
    function mp14211510() {
    
     add_filter( 'backwpup_cacert_bundle', '__return_false' );
    
    }
    add_action( 'plugins_loaded', 'mp14211510' );

    I created a plugin to ‘extend’ the backwpup plugin (3.1.2beta3) almost exactly as suggested by Daniel:

    if ( ! defined( 'ABSPATH' ) ) exit;
    
    function insecure_backwpup() {
     if (has_filter('backwpup_cacert_bundle')) {
       add_filter( 'backwpup_cacert_bundle', '__return_false', -1000);
      }
    }
    
    add_action( 'plugins_loaded', 'insecure_backwpup' );

    I network activated the created plugin (I am running wp multi-site)

    Dropbox authentication in backwpup seems to be working : )
    But whether or not I activate the plugin filter doesn’t seem to make any difference (??)

    In previous releases however (3.0.13) I still got the Unsupported SSL protocol version issue even with just Dropbox re-authentication, not anymore in 3.1.2beta3

    Unfortunately I cannot run any backup job still, since this issue with the self-signed SSL certificate, introduced I guess in backwpup 3.1.x has not been solved (for me)

    Will checkout workaround as suggested by ckarich shortly

    testing with:
    wp 3.8.1 multi-site
    php 5.4.24
    mysql 5.5.30
    curl 7.34.0
    openssl 1.0.1e

    @pumpkineater: if (has_filter('backwpup_cacert_bundle')) { can not work because ther is no filter rigesterd for this hook as default.

    If the filter set to false it will do the same as ckarich suggest.

    @daniel

    the if (has_filter('backwpup_cacert_bundle')) condition evaluates to TRUE, so add_filter statement is executed anyway

    Anyway, does this filter ‘solve’ the issue with Dropbox for some users?
    I can’t test it at the moment..

    @pumpkineater: it should solve it i hope. But i can’T reproduce the problem on my servers.

    curl 7.35.0 has been released (https://curl.haxx.se/changes.html#7_35_0)

    couldnt try it out yet, because it not yet in my distros package management system.

    it should fix the error 35 problem without any workarounds (filters, plugins, commenting out sections) – atleast thats my understanding of the underlying curl-problem. maybe anyone could test it and report back.

    @ckarich, thanks for the info

    I get the 35 error with wp/backwpup plugin (no workaround applied) but I can’t replicate the error by curl -I -3 https://www.google.com/ , which should with curl 7.34.0 currently still installed on my server….

    I am not so keen at the moment to put the server in a poor state by installing curl 7.35 from source with broken dependencies

    you cant? thats odd .. because here i can replicate the error with 7.34.0:

    ckarich@xt ~ $ curl -v -I -3 https://www.google.com/
    * Hostname was NOT found in DNS cache
    * Trying 173.194.112.209…
    * Adding handle: conn: 0x6585b0
    * Adding handle: send: 0
    * Adding handle: recv: 0
    * Curl_addHandleToPipeline: length: 1
    * – Conn 0 (0x6585b0) send_pipe: 1, recv_pipe: 0
    * Connected to https://www.google.com (173.194.112.209) port 443 (#0)
    * Unsupported SSL protocol version
    * Closing connection 0
    curl: (35) Unsupported SSL protocol version

Viewing 15 replies - 16 through 30 (of 44 total)
  • The topic ‘Dropbox API: (35) Unsupported SSL protocol version’ is closed to new replies.