#9 Https Problem

1.1.2
open
Werner Donné
None
9
2014-06-09
2014-06-09
Jorge
No

Hi, first at all thanks for everything!

I have been trying the webDav jar on my server, and it works perfect.(http URL)

But when i try it with https URL it doesnt wort! Is say this:

"Done.

handshake alert: unrecognized_name"

And it doesnt sync anything!

What can i do? It is able to sync with a htttps url, doesn´t it?

Thanks by your help.

Discussion

  • Werner Donné
    Werner Donné
    2014-06-09

    Hello Jorge,

    WebDAV-Sync can indeed use HTTPS, but the SSL-connection will require a correct validation of the server. Do you have a valid certificate on the server?

    Best regards,

    Werner.

     
  • Jorge
    Jorge
    2014-06-09

    Yes, I have the validad certificate, I manage the server.
    But, how can I use it for my command line on cmd, to do my correct sync?

    Thank you!.

    Jorge

     
  • Werner Donné
    Werner Donné
    2014-06-09

    You don't have to use it for your command-line. The Java SSL-layer will make the connection and if the certificate is valid the connection should work automatically. Can you add "-Dbe.re.stack" to the command-line. Perhaps the stack trace tells us more.

    Werner.

     
  • Jorge
    Jorge
    2014-06-09

    I try -Dbe.re.stack and it tell me this:

     
    Attachments
  • Jorge
    Jorge
    2014-06-09

    It seems to be the solution... but im trying the command they say -Djsse.enableSNIExtension=false
    and it gives me other error... (I give you the image)

    Thats why im asking you if your jar
    use Https or I have to put other command... I will search mre information
    on the link u give me..-

    Anyway, thank you so much by your help, amazing job!

    Jorge

     
  • Werner Donné
    Werner Donné
    2014-06-09

    This exception means that either an intermediate certificate or a root certificate that is in your certificate is not present in the list of standard certificates in your Java-environment. You can add them in /jre/lib/security/cacerts or you can run UIVI (http://www.re.be/uivi/) and make a connection with the server with it. It will also report it can't validate the certificate, but then it will propose to trust it. You have to check the box that lets you trust it permanently. The server certificate will then be placed in a truststore, which is shared with WebDAV-Sync.

    Werner.