Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android App - Set Up Encryption fails #2013

Closed
Wizlonex opened this issue Jan 20, 2018 · 5 comments
Closed

Android App - Set Up Encryption fails #2013

Wizlonex opened this issue Jan 20, 2018 · 5 comments

Comments

@Wizlonex
Copy link

Wizlonex commented Jan 20, 2018

Actual behaviour

Fails to setup encryption option on android app.

Expected behaviour

N/A

Steps to reproduce

  1. Select folder to encrypt.
  2. Tap menu.
  3. Select "Set as encrypted".
  4. Click folder.
    --> "Note your encryption passphrase...".
  5. Click "Set Up Encryption".
    --> Error message "Error. Storing keys was unsuccessful, please try it again!".
  6. Click close.
    --> (If you try to enter the "encrypted" folder, the process (and error) repeats from step 4).

If I try to access the encrypted folder via the web portal, it errors (probably expected behavior?).

Nothing useful seen in server log because it does not record the client-side error (but it does record the accessing encrypted folder failure, which is normal I think?). I am happy to try to provide additional info.

If I try to send app logs, the app crashes ('Nextcloud has stopped'). But even so, there are no app log entries associated with the encryption set-up failure anyway.

Environment data

Android version: 8.1.0

Device model: Pixel XL 2

Stock or customized system: Stock

Nextcloud app version: 3.0.0 RC1

Nextcloud server version: 13.0.0 RC1

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

@tobiasKaminsky
Copy link
Member

@schiessle strange that there is nothing on server log, or?
I assumed that the CSR is not valid, maybe related to #1859

@ConorIA
Copy link

ConorIA commented Jan 23, 2018

I'm experiencing the same behaviour.

Error     end_to_end_encryption     2018-01-23T17:15:18-0500
Can't create public key: could not sign the CSR, please make sure to submit a valid CSR

Error     PHP     2018-01-23T17:15:18-0500
openssl_csr_sign(): cannot get CSR from parameter 1 at /apps2/end_to_end_encryption/lib/SignatureHandler.php#60

Not sure if relevant, but I'm using this Docker image: https://github.com/hoellen/dockerfiles/blob/master/nextcloud/Dockerfile.13.0

Could this be a libressl issue? (I'm really not sure about cross compatibility between open and libre.)

EDIT: This could be a coincidence, but @yb171, who commented on #1859, and @Wizlonex are both using Pixel 2 XL and I'm using a Pixel XL.

@ardevd
Copy link
Collaborator

ardevd commented Feb 9, 2018

Having a similar issue on my Pixel 2 XL with the latest version of the Nextcloud app from Google Play. See #2134

@tobiasKaminsky
Copy link
Member

Please try 3.0.1 as this is most probably related to #2134 as @ardevd said.
If not, please comment here and re-open.

@ConorIA
Copy link

ConorIA commented Feb 23, 2018

Not fixed as of 3.0.1 for me. Still getting the same errors in the logs:

Error | end_to_end_encryption | Can't create public key: could not sign the CSR, please make sure to submit a valid CSR | 2018-02-23T10:33:19-0500
-- | -- | -- | --
Error | PHP | openssl_csr_sign(): cannot get CSR from parameter 1 at /apps2/end_to_end_encryption/lib/SignatureHandler.php#60 | 2018-02-23T10:33:19-0500

Edit: Reading through #2134. Will try deleting keys via curl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants