Doesn't support untrusted certificates with webdav

Bug #795399 reported by Romain Reuillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Syncany
Invalid
Undecided
Unassigned

Bug Description

When connceting to a webdav server through https if the remote server doesn't own a trusted certificate the connection fails with the following exception:

com.googlecode.sardine.util.SardineException
 at com.googlecode.sardine.SardineImpl.executeWrapper(SardineImpl.java:552)
 at com.googlecode.sardine.SardineImpl.getResources(SardineImpl.java:172)
 at org.syncany.connection.plugins.webdav.WebdavTransferManager.list(WebdavTransferManager.java:132)
 at org.syncany.connection.plugins.webdav.WebdavTransferManager.list(WebdavTransferManager.java:151)
 at org.syncany.config.Repository.commit(Repository.java:201)
 at org.syncany.config.Repository.commit(Repository.java:195)
 at org.syncany.gui.wizard.RepositoryTestPanel$1.run(RepositoryTestPanel.java:57)
 at java.lang.Thread.run(Thread.java:679)
Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
 at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:371)
 at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
 at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:399)
 at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:143)
 at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
 at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
 at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
 at com.googlecode.sardine.SardineImpl.executeWrapper(SardineImpl.java:547)
 ... 7 more
org.syncany.exceptions.StorageException: ...
 at org.syncany.connection.plugins.webdav.WebdavTransferManager.list(WebdavTransferManager.java:143)
 at org.syncany.connection.plugins.webdav.WebdavTransferManager.list(WebdavTransferManager.java:151)
 at org.syncany.config.Repository.commit(Repository.java:201)
 at org.syncany.config.Repository.commit(Repository.java:195)
 at org.syncany.gui.wizard.RepositoryTestPanel$1.run(RepositoryTestPanel.java:57)
 at java.lang.Thread.run(Thread.java:679)

Revision history for this message
Philipp C. Heckel (binwiederhier) wrote :

The WebDAV plugin does not yet support SSL/TLS, so no wonder it doesnt work :-D
Thanks for reporting.

Revision history for this message
Philipp C. Heckel (binwiederhier) wrote :

Duplicate of #787706

Changed in syncany:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.