Skip to content

SSL handshake failed #1866

Closed
Closed

Description

@Luuk34

2014-06-10 12_02_02-samples

see thread here:
https://forum.owncloud.org/viewtopic.php?f=26&t=21745&p=61727#p61727

When synchronizing a new account it all start fine, but before completion i get an 'SSL handshake failed'
Nothing weird found in logfiles, piece of wireshark attached.

server: linux (openSUSE x86_64 12.3)
owncloud-server: 6.0.3
owncloud-client: Windows7; version 1.6.0 (build 3082)

how to upload a wire shark (how to attach a file?) here?

update 2014-07-12: This problem does not occur with owncloud 6.0.4.1, and client 1.6.1.3267

Activity

  1. danimo commented on Jun 10, 2014

    @danimo
    Contributor

    I don't think you can. Send it to me in private: danimo AT owncloud.com

  2. dhaval04 commented on Jun 12, 2014

    @dhaval04

    I have the same issue. I just installed Owncloud ver. 6 and configured SSL from documentation. I am using cert from startssl.com . I received this error "SSL Handshake Failed" from both Mac and PC when I try to setup account. However when I try to access it via browser, it works just fine.

    Server: Ubuntu 14.04 with Apache 2.4.7 / PHP 5.5.9
    Client: OS X 10.9 version 1.6.0 (build 201)
    (Same issue with Windows 7 version 1.6.0 build 3082)

    Receive A- from Qualys SSL Check (Complains about forward secrecy)

    Since both clients are producing same error, its look like I am missing something from server side.

    SSL Conf.:


    ServerAdmin [email protected]
    DocumentRoot /var/www/html

                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined
    
                SSLEngine on
    
                SSLCertificateFile      /etc/ssl/certs/server.crt
                SSLCertificateKeyFile /etc/ssl/private/server.key
                SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem
    
                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                SSLOptions +StdEnvVars
                </FilesMatch>
                <Directory /usr/lib/cgi-bin>
                                SSLOptions +StdEnvVars
                </Directory>
                BrowserMatch "MSIE [2-6]" \
                                nokeepalive ssl-unclean-shutdown \
                                downgrade-1.0 force-response-1.0
                # MSIE 7 and newer should be able to use keepalive
                BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
    
                # Owncloud Install 2014-06-03
                <Directory /var/www/html/oc>
                        Options Indexes FollowSymLinks MultiViews
                        AllowOverride All
                        Require all granted
                </Directory>
        </VirtualHost>
    

    Server is only serving via https. However the default http port has been changed to 2080. Server is behind router and only 443 port is opened.

    Please help.

  3. Luuk34 commented on Jun 12, 2014

    @Luuk34
    Author

    my wireshark file will have to wait, at least until the weekend.
    I tested on my laptop, to the same linux-server and that went OK
    so , first i will do some more (local) investigations into my problem ;)

  4. Luuk34 commented on Jun 12, 2014

    @Luuk34
    Author

    i just retried copying, and .......

    2014-06-12 19_30_27-ssl handshake failed issue 1866 owncloud_mirall

    #client-part1 (line 62-70)#
    |0|photos/Azoren/Azoren-570.JPG|INST_NEW|Up|1402314195||2654649||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-663.JPG|INST_NEW|Up|1402314461||3695164||0||0|0|0|||INST_NONE|
    17:14:11|10950|photos/Azoren/Azoren-462.JPG|INST_NEW|Up|1402313915||3441829||4||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-503.JPG|INST_NEW|Up|1402314040||3539232||0||0|0|0|||INST_NONE|
    17:11:41|13473|photos/Azoren/Azoren-417.JPG|INST_NEW|Up|1402313774||3534665||4||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-486.JPG|INST_NEW|Up|1402313983||3415455||1|Operation canceled|0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-764.JPG|INST_NEW|Up|1402314719||3570149||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-658.JPG|INST_NEW|Up|1402314447||3550964||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-593.JPG|INST_NEW|Up|1402314257||3540727||0||0|0|0|||INST_NONE|

    #client-part2 (lines 365-374)#
    |0|photos/Azoren/Azoren-877.JPG|INST_NEW|Up|1402314859||262762||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-820.JPG|INST_NEW|Up|1402314818||324488||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-681.JPG|INST_NEW|Up|1402314505||3007375||0||0|0|0|||INST_NONE|
    17:14:47|10662|photos/Azoren/Azoren-475.JPG|INST_NEW|Up|1402313948||3606731||4||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-687.JPG|INST_NEW|Up|1402314518||815320||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-487.JPG|INST_NEW|Up|1402313986||3608153||1|SSL handshake failed|0|0|0|||INST_NONE|
    17:12:02|10211|photos/Azoren/Azoren-424.JPG|INST_NEW|Up|1402313791||3332013||4||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-643.JPG|INST_NEW|Up|1402314398||3510639||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-550.JPG|INST_NEW|Up|1402314152||3451721||0||0|0|0|||INST_NONE|
    |0|photos/Azoren/Azoren-518.JPG|INST_NEW|Up|1402314084||3633808||0||0|0|0|||INST_NONE|

    #server-access_log#
    192.168.178.4 - Luuk [12/Jun/2014:19:15:09 +0200] "PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1" 207 449
    192.168.178.4 - Luuk [12/Jun/2014:19:15:15 +0200] "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-482.JPG HTTP/1.1" 201 -
    192.168.178.4 - Luuk [12/Jun/2014:19:15:11 +0200] "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-481.JPG HTTP/1.1" 201 -
    192.168.178.4 - Luuk [12/Jun/2014:19:15:20 +0200] "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-483.JPG HTTP/1.1" 500 388
    192.168.178.4 - Luuk [12/Jun/2014:19:15:28 +0200] "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-485.JPG HTTP/1.1" 400 279
    192.168.178.4 - Luuk [12/Jun/2014:19:15:36 +0200] "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-486.JPG HTTP/1.1" 400 279
    (end of logfile)

    #server-request_log#
    [12/Jun/2014:19:15:28 +0200] 192.168.178.4 TLSv1 DHE-RSA-AES256-SHA "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-485.JPG HTTP/1.1" 279 "-" "Mozilla/5.0 (Windows) mirall/1.6.0"
    [12/Jun/2014:19:15:36 +0200] 192.168.178.4 TLSv1 DHE-RSA-AES256-SHA "PUT /owncloud/remote.php/webdav/photos/Azoren/Azoren-486.JPG HTTP/1.1" 279 "-" "Mozilla/5.0 (Windows) mirall/1.6.0"
    (end of logfile)

    #in Apache 2.2 config#
    ErrorLog /var/log/apache2/ssl_error_log
    TransferLog /var/log/apache2/ssl_access_log
    CustomLog /var/log/apache2/ssl_request_log ssl_combined

    #server-error_log#
    no entries......

  5. Luuk34 commented on Jun 12, 2014

    @Luuk34
    Author

    The 'Database is locked' is probably the cause?

    in my config.php is:
    ....
    'dbtype' => 'sqlite3',
    'version' => '6.0.3.1',
    'installed' => true,
    'forcessl' => true,
    ...

  6. dhaval04 commented on Jun 12, 2014

    @dhaval04

    When you say "locked" what do you mean? I am using MySQL.

  7. Luuk34 commented on Jun 12, 2014

    @Luuk34
    Author

    it's an error created by the client (version 1.6.0)
    The client uses sQlite....

  8. danimo commented on Jun 13, 2014

    @danimo
    Contributor

    @Luuk34 please ignore the Sqlite issues for the purpose of this bug. It's most definitely not related.

  9. danimo commented on Jun 13, 2014

    @danimo
    Contributor

    @Luuk34 I am still waiting for a wireshark trace

  10. Luuk34 commented on Jun 16, 2014

    @Luuk34
    Author

    i posted a mail to you on 13th june 23:19 , with a link to the logfiles

  11. nrbrt commented on Jul 9, 2014

    @nrbrt

    I am also having problems connecting with the mac sync client client 1.6.1 build 359. I get the handshake failed error. It started when I changed my apache SSL settings.

    old settings:
    SSLProtocol all -SSLv2 -SSLv3
    SSLCipherSuite EECDH+AES:EDH+AES:-SHA1:EECDH+RC4:EDH+RC4:RC4-SHA:EECDH+AES256:EDH+AES256:AES256-SHA:!aNULL:!eNULL:!EXP:!LOW:!MD5

    new settings:
    SSLProtocol all -SSLv2 -SSLv3
    SSLCipherSuite EECDH+AES256:!EDH:!DH:!aNULL:!eNULL:!EXP:!LOW:!MD5

    I am also using a certificate from startssl.com. When I put the old settings back(same cert), things work again. The Windows sync client (1.6.1 build 3267) connects fine, no matter my SSL settings. I will test the Linux client in a moment. I will post those results shortly. If I can do anything to help resolve the issue, please let me know.

  12. nrbrt commented on Jul 9, 2014

    @nrbrt

    follow up: my Linux client(1.3.0) also has the handshake problem. It seems to have something to do with the SSL cipher suite, since that is the only difference really. My other clients do not have a problem connecting with the new settings. IOS and Android webdav clients all working fine and like I mentioned in the earlier post, the windows sync client works fine. Still need wireshark traces?

  13. guruz commented on Dec 2, 2014

    @guruz
    Contributor

    @Luuk34 I think that sqlite error is actually created by the server (if your server is using sqlite3). If you switch to a better DB it should not happen anymore.

    @nrbrt We have a test build for a Mac client with a more recent OpenSSL version here: #2510 (comment)

  14. added this to the milestone on Jan 23, 2015
  15. guruz commented on Mar 26, 2015

    @guruz
    Contributor

    Please create a new bug if using a recent version (with Qt5, with OpenSSL 1.x) does not help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions