Repository navigation
Description
Hi,
I am deploying ownCloud to private environment . As I want to upload to my cloud confidental documents, I need some good security.
I have decided, that it would be nice to require SSL certificates from clients. This is pretty strong security measure. But I have found, that there is no support for this in mirall.
I kindly ask any mirall/csync developer, if it would be possible to add configure option for SSL client certificate. All what is needed is is to provide certificate when connecting to server. It should be simple task to someone familiar with the code.
Mirall uses QSslSocket and there are QSslSocket::setLocalCertificate and QSslSocket::setPrivateKey functions to set the certificate.
csync uses neon and it has ne_ssl_set_clicert function.
I will be happy to answer any question or test any code.
Thank you.
Update from @danimo:
Ok, for someone who likes to pick this feature up, here is what needs to be done in more detail:
- Modify wizard to alternatively accept auth via client cert on top of password (or is there a way to tell owncloud to accept client auth only?)
- If certificate is encrypted, ask for its password and store via qtkeychain.
- Add cert/key to
QSslConfigurationof the globalQNetworkAccessManager. - Add property to csync_owncloud.c to pass the certificate (either unencryted or encrypted along with Password) to neon as used in csync (Neon API).
If you want to start working on it, please contact me.
--- Did you help close this issue? Go claim the **[$110 bounty](https://www.bountysource.com/issues/905047-tls-client-certificate-support?utm_campaign=plugin&utm_content=tracker%2F216457&utm_medium=issues&utm_source=github)** on [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F216457&utm_medium=issues&utm_source=github).
Activity
wdehoog commentedon Jan 23, 2013
We have the same situation and cannot use the client until it can provide certificates.
Preferebly it would use the windows certificate store or the one from firefox.
kzajacc commentedon May 28, 2013
We're just another group of people which is interested in this functionality. It would appreciated if You would implement this.
frijsdijk commentedon May 28, 2013
Yessir, interested in such a feature!
danimo commentedon May 28, 2013
If there is so much interest, why does nobody come up with a patch then?
pretjep commentedon Jun 11, 2013
Waiting for this!!
rbardoel commentedon Jul 6, 2013
+1 for this feature!
danimo commentedon Jul 6, 2013
Added outline on how to implement the feature.
natschil commentedon Aug 22, 2013
I'm currently using stunnel to create a https->http "tunnel" as an ugly hack to get this functionality. It works okay-ish, but having to start stunnel every time I start mirall is far from optimal.
natschil commentedon Aug 22, 2013
Does anyone know whether there's any work happening on this?
If not, I would be interested in looking at the source code to see what I can do.
danimo commentedon Aug 22, 2013
@natschil I am not aware about anyone working on this. See my descriptions in the original report on what needs to be done. Don't hesitate to ask if you need further help.
natschil commentedon Aug 22, 2013
I'll have a look at what I can do in the next few days. Is there an irc
channel for mirall development somewhere?
danimo commentedon Aug 22, 2013
#owncloud-client-devthink-nice-things commentedon Nov 2, 2013
I just patched ocsync to allow for CA and client certificates.
I mailed the patch to [email protected] as I don't know how to add it here.
The syntax is pretty obvious IMHO and is described in the new help:
This allows ocsync to connect to a server which is protected by a (self-signed) client certificate.
The ca file will usually be a PEM file, the client certificate will usually be in p12 format.
I added corresponding properties ca_certificate, client_certificate and client_certificate_pass to csync_owncloud.[ch], which could also be used by the gui.
Anyone volunteers to do the gui stuff? (I'm afraid of beeing not experienced enough to do this).
It would be nice if this could make it to the official sources soon.
natschil commentedon Nov 3, 2013
Thanks for doing this!
I also have a set of (untested) patches for ocsync with client side ssl
certificates, I can upload them somewhere if you want to compare yours
with mine. Note that my patches only change the owncloud module of
csync, and hence have no commandline arguments, but if I remember
correctly, owncloud doesn't actually call the csync application w/
commandline parameters but instead dynamically loads a shared library or
something. (I coded this about a month ago, and I don't remember the
details).
I had a look at some of the GUI stuff too and made some preliminary
changes ( such as changing the .ui files to accept client side ssl
certificates, and changing some of the configuration file abstraction to
be able to set client side ssl cert configuration options, but then I
ran out of free time and didn't actually get to anything that works
(writing Qt GUIs is not really my area of expertise either).
On 11/02/2013 10:09 PM, joze- wrote:
think-nice-things commentedon Nov 3, 2013
natschil // yes please make your code available, I'll check if I can make the best from both versions
131 remaining items
[-]SSL Client certificate[/-][+]TLS Client certificate support[/+]WiP: Fix up SSL client certificates #5213 #69
guruz commentedon Dec 5, 2016
PR in #5289 is ready to test.
Please compile from fix_client_certs branch and (re?)-setup the specific account. It should show a dialog in the wizard that lets you set the client certificate.
Please comment your test findings on #5289 .. not here.
Fix up SSL client certificates #5213 #69 (#5289)
guruz commentedon Jan 3, 2017
The PR is merged. We would need some testing from you guys:)
There was an issue with updating the nightlies on Linux which should be fixed now.
Please download from or compile yourself (master branch)
https://owncloud.org/install/#testing-development
Note that it needs a current Qt version (>= 5.5 or so)
guruz commentedon Jan 25, 2017
Done as part of 2.3
[-]TLS Client certificate support[/-][+]TLS Client certificate support [$110][/+]