Skip to content

Strange issue with CACert certificates #464

Closed

Description

@erm67

My owncloud server is running in https only on a nginx server and I use server certificates from cacert, cacert root certificates are not included on my android device (and probably in any android). When I installed the owncloud app it was able to connect without problems to the server but I was only able to browse and read the files, any attempt to upload did stalled forever, in the server log I found lots of lines like those:

x.x.x.x - username [04/Apr/2014:20:49:54 +0200] "HEAD /remote.php/webdav/documents/0523acaa096b5e583292145dc8bb77be%20(7).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
x.x.x.x - username [04/Apr/2014:20:49:55 +0200] "HEAD /remote.php/webdav/documents/0523acaa096b5e583292145dc8bb77be%20(8).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"
x.x.x.x - username [04/Apr/2014:20:49:55 +0200] "HEAD /remote.php/webdav/documents/0523acaa096b5e583292145dc8bb77be%20(9).jpg HTTP/1.1" 200 0 "-" "Android-ownCloud"

but nothing was uploaded.

Today I installed CACert's root certificates on my android device and viola, everything works perfectly. I just wanted to let you know since I was not able to find a solution online, maybe others have a similar problem with a server using certificates not issued by a CA trusted by Android.

Activity

  1. davivel commented on Apr 24, 2014

    @davivel
    Contributor

    In theory, when you first access to a server holding a certificate signed by an untrusted CA, a dialog should warn you about it and give the chance of trust on the certificate anyway. After that, the operation of the app should go fine.

    The logs you provide don't reveal any clear error. We couldn't reproduce any similar behaviour in our test environments.

    Of course, installing the CA in your device as you did is a perfectly valid solution. The certificates store in the device is the first reference for the app regarding certificates. Just take into account that, by doing so, you are trusting in the CA not just for the ownCloud app, but for every app in the device. When the certificate is accepted in the dialog built-in the app, it is added to a trust store specific for the app.

    Thanks for sharing your solution with the community, can be helpful. By the way, since we can't reproduce this and it's solved for you, we'll close the issue.

    Thanks again.

  2. added a commit that references this issue on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions