Keepass and Owncloud
By Rants&Raves on Jul 22, 2013 in Apple, Software
Keepass Owncloud iOS
I was looking for a way to keep up with my passwords and Keepass is pretty much the most widely used so I decided to give it a shot. Installing it was easy and I had no difficulties there (note: the “professional” edition isn’t a paid version or anything else, it’s just a fork of the original version that’s had more features added, get this one). I did this at work and later got home and went looking for a password – I decided updating two copies separately was silly in 2013 and wondered if I should install it to a flash drive. This didn’t make sense either because I’m really only using it at work and at home right? I’ll use Dropbox… no wait, I just set up an Owncloud server on my home server. Perfect!
I like this idea better than dropbox for two reasons: Firstly, it’s not susceptible to any Dropbox insecurities or any widespread password leaks. Sony, Google, Dropbox, and other large companies are targeted for attacks because of the sheer amount of treasure to be had when someone manages to get in. With my Owncloud installation it’s protected with obscurity and by the fact that hardly anything of importance for anyone other than myself resides there. Secondly, the whole NSA spying thing makes me uneasy… sure I’ve got nothing that I don’t want the NSA to see – but it’s MY stuff! I don’t want anyone but my wife and kids to have access to MY stuff… With the information on my own server and in my own hands, it’s under my control.
Keepass and Owncloud
Setting up Keepass to use my Owncloud server was easy – I had the Owncloud client installed on both PC’s and simply saved my .kdbx database file to a folder inside my Owncloud sync folder and made both Keepass clients use that database file. Once I updated it on one computer, it updated on the other. Easy enough. But what if I’m not on my work PC or my home PC? What if I’m somewhere else? I have an iPhone so I started searching for options for keepass apps on iOS. I tried a few and even wasted a few dollars in the process. Some had the ability to sync to just Dropbox and some had Dropbox and Google Drive, but none natively supported Owncloud – no surprise there. I had another avenue though, WebDAV. In a nutshell, WebDAV makes the web a readable and writable medium – meaning you can read and write to files. Owncloud supports WebDAV so I decided to give it a shot. They’ve got a whole guide on how to set up your operating system to use it via WebDAV, but I needed a keepass iOS app that supported it and I found one called Kypass. It wasn’t cheap, it was $4.99, but I decided to give it a try – after all I’d found a post on the developer’s site where some people were trying to do exactly as I was doing (in the comments).
Once you’ve got your kdbx database on your Owncloud server, open up Kypass and go to Settings, click on File Synchronization, and the last option “WebDAV” click Add a connection. You’ll point it to your database file using this address:
http://username:password@yourowncloud.com:80/remote.php/webdav/database.kdbx
Keepass iOS Owncloud
If you have it in a folder in your Owncloud files it’d be:
http://username:password@yourowncloud.com:80/remote.php/webdav/folder/database.kdbx
And just to have one more example (more’s always helpful, right?), let’s assume your username is James and your password is mockingbird12 and your Owncloud is installed at www.jamescloud.com and your keepass database named keepass.kdbx is in the root folder. Your Kypass WebDAV would point to:
http://James:mockingbird12@jamescloud.com:80/remote.php/webdav/database.kdbx.
Pretty simple, huh?
Kypass Keepass Owncloud
I haven’t bothered getting it to work fully over https and I believe some others in the comments I linked earlier had issues with it as well. The developer stated 6 days ago that he sent an update for the app to Apple to get approved that fixes using Kypass over https with Owncloud. If you manage to get it working, let me know in the comments what your Owncloud settings and Kypass settings are. If you have any trouble getting it to work like I described, please leave a message and let me know and I’ll try to help you troubleshoot it. I’ll be trying to find some to-do list apps for the iPhone that use WebDAV so I can share grocery lists and to-do lists with my wife and other people and will post a guide when I find something.