Cannot open keepass dbx via Seafile webdav https
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
Hello,
I have a Seafile instance on my server configure with apache2 as a proxy.
I use https with a valid letsencrypt certificat and I'm able to open webdav in Chrome for exemple.
But when I try to open it with Keepass it fail with this message :
The request was aborted: Could not create SSL/TLS secure channel.
I've also try to check Accept invalid SSL certificates but no luck.
I'm using Keepass 2.31 in Windows 10.
Thank you.
I know it's reporting an SSL error, but have you checked the URL you are using for the database?
KeePass if fussy about the path and uses what appears to be an extra backslash to identify a path off the root.
e.g. If your database is in /files/KeePass/database.kdbx and your home path is /usr/me, the URL would have to be https://server//files/KeePass/database.kdbx.
If your database is in /usr/me/KeePass/database.kdbx and your home path is /usr/me, the URL would have to be https://server/KeePass/database.kdbx.
cheers, Paul
Maybe the server enforces the use of TLS 1.1 or 1.2. Support for this has already been added for the next KeePass release.
Here's the latest development snapshot for testing:
http://keepass.info/filepool/KeePass_160212.zip
Thanks and best regards,
Dominik
Hello,
SSLabs give me this result :
Protocols
TLS 1.2 Yes
TLS 1.1 Yes
TLS 1.0 Yes
SSL 3 No
SSL 2 No
And I've tried with the latest development snapshot, I have the same error.
Please try turning off the option 'Use file transactions for writing databases' in 'Tools' -> 'Options' -> tab 'Advanced'.
Best regards,
Dominik
I still the issue.
I tried with both version.
Thank you.
Regards,
Can I launch Keepass in debug mode to have some logs ?
And how can I check logs in Windows 10 ?
Regards,
There aren't any logs, but you could start KeePass.exe with the
--debugcommand line option; KeePass then shows more detailed exception messages.Best regards,
Dominik
Here is a screenshot of the error with debug, maybe this can help.
Regards,
Ok, I've upgraded apache2.2 to 2.4 and now it's working fine.
I don't know why ...
Thanks
Thanks for the feedback.
cheers, Paul
I have this issue still when using Apache 2.4. I'm happy to provide whatever information is relevant. I'm under the impression this is an issue with my setup, but I'd still like to know what's going on.
Can you access the server logs to see what happens with the transaction?
Are you using a self generated certificate? Have you turned off the validity check as mentioned by the OP?
Can you download the file using a browser?
Can you save the file using a browser?
cheers, Paul
I have turned off the validity check, I can download and save the file using a browser. I don't see anything in my server logs, and a packet capture shows that a server key exchange was initiated, but that was as far as things got.
I relaxed the cipher suite settings and SSL protocol settings down to stupidly low values and it still stops at the server key exchange.
Can you use SCP from the KeePass directory to load / save the file?
Turn on SCP logging to see if it has any hints.
cheers, Paul
I don't see SCP in the KeePass installation directory, or the application data directory. I do have WinSCP installed and the only things it shows in the logs worth mentioning are related to certificate trust. This was after performing a directory browse and subsequently uploading the file. Logging level was normal
I also did a directory browse at debug level 1 which didn't reveal anything further.
If you are using SFTP you must have the IOProtocol plug-in. That installs SCP to .\IOProtocolExt_WinSCP.
cheers, Paul
I installed the IOProtocolExt plug-in. It currently uses WinSCP version 5.7.7, and I tested with version 5.7.6 earlier. Testing using KeePass gives the same SSL/TLS error. The output in the logs is the same when using this version of WinSCPl. This is what is shown around the SSL side of things, with some details redacted.
The log looks OK.
Have you been able to download the file using just WinSCP?
cheers, Paul
Confirmed. It downloads just fine.
Comparing the logs between a KeePass open and WinSCP download?
cheers, Paul
How do I enable logging in KeePass and where do I retrieve the log? I don't see this information on the help pages, and I don't see anything under options.
WinSCP logs, not KeePass.
cheers, Paul
It would seem that even though I have selected "Accept invalid SSL certificates" under the options, the selection of this is not applying correctly. I have one certificate signed by CAcert which is failing, and the other by LetsEncrypt which is succeeding. When I try from a browser that has the CAcert root CA added both URLs are accessible and the certificate chain is valid. Both URLs point to the same file but use different virtual host configurations in Apache.
For now I have changed the URL so that it is provided the LetsEncrypt certificate. It is working with the invalid SSL certificates option unchecked.