-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
E2E: Unsupported class: class javax.crypto.spec.IvParameterSpec when encrypting the private key. #2134
Comments
|
No related log entries on the server side which makes me suspect that the issue resides in the client. I'm assuming it's unable to create/store the keys on the device. Has this been tested with Android 8.1.0? |
Some problem on Samsung s8 Nexus 6 and Nexus 6p, but ok on smartphone huawei |
This is where it fails for me.
operation.execute() is unsuccessful for some reason and hence the AsyncTask returns an empty string. Stepping into SendCSROperation shows that the server returns status code 409. I've actually never encountered a 409 error before so I had to look it up. No idea what's causing it though. The POST request looks good and a seemingly proper CSR is being passed to the server. The issue also occurs when using the Android Emulator (API 27). |
Reading through the E2E app docs the 409 error was caused by the fact that a public key already existed for my user. I deleted it, now the RemoteOperationResult returns 200 OK so now I can finally get to the actual cause of the problem, which is an unsupported KeySpec.
This is caused by |
great, I'm waiting for the solution is new release that fixes the bug. in fact I had another user on s8 and Nexus 6, but on Nexus 6p instead no, but I had an error. |
The offending bit of code: I'll see if I can make a PR that fixes this. |
PR created. The fix is seemingly pretty simple and works fine on my devices, but they all run Android 8.1. |
Maybe this is only a me too post, but I have the same problem on my Nexus 6P running Android 8.1. Thus I'd like to know if there is a timeline for accepting arddevd PR and releasing a new version of the app fixing this issue? |
As we had a bit of trouble for many users upgrading to 3.0 I somehow missed this. |
I'm fairly sure this is because you now have a stale private key and/or public key on your server. It would be really useful if you could re-install the app first and see if the problem is resolved. #2158 should ensure that the old keys are deleted. If that doesnt work, try this: 1 - Delete the private key from the server |
I try to uninstall apps and reinstall, otherwise I try your second method .. I hope anyway in an application in the application as soon as possible. I keep you updated |
I uninstalled and reinstalled but the problem persists. I have my nextcloud hosted on Aruba and I do not have access to the Shell how to fix? |
You don't need shell access. You can curl from your local machine. Just pass the hostname for your NextCloud server to it.
Replacing , and <nextcloud.myserver.com> with their correct values. |
suppose my user is called "Ti@er" and suppose my nextcloud is https://www.pensierando.it/Nextcloud which command to curl where to write in a linux terminal because it happens? I receive error curl: (3) Illegal port number |
Hmm, your username really has an @ in it? Damn, that must be screwing things up for you! The error you're getting is because the @ is messing up the command for you. Say your username was "bob" and the password was "SuperSecretPass" the command would be Your command would be:
|
Try this?
I'll be honest, I have no idea if that will work ^^ |
also tried with the tips "Ti@er" even my password has the "@@" but always error curl: (3) Illegal port number |
curl supports -u to specifcy user/password, so maybe try: |
@tigernero79 use the suggestion from @tobiasKaminsky
Also... you should probably obfuscate your password from that screenshot better. |
curl -u "Ti@er:SuperSecretPass" -X DELETE https://www.pensierando.it/Nextcloud/ocs/v2.php/apps/end_to_end_encryption/api/v1/private-key -H "OCS-APIRequest:true" |
Ok, good. No stale private key. Now do:
|
Ok, doesnt seem like there was any stale public keys either. I'm beginning to suspect you're experiencing a different issue here. Whats the output of the following command?
|
And if you now run the Android app it still doesnt work? |
exact it does not work for me. I tried both with Samsung s8 and with Nexus 6 both have Nougat. I tried as well with another nextcloud domain I have. same problem |
with my wife Huawei's cell phone on both my nextcloud domains it worked right away. I have also deleted my Tiger user and Created Ti @ er thinking about Key problems but as you also see Tiger from the same problem |
if you want to create test user to you on my nextcloud and try it too? if you have a Nexus 6 or s8? with Huawei it worked |
So you're saying it works with your wife's Huawei using the same Nextcloud account as you're trying to use on your device? |
no, with my wife's account works, same domain, also tested with nexus 6p my brother's account has oreo and it also works. |
Can you try your wife's account with your phone then? We have to figure out if the problem here is with your account (in which case you should start a new issue as your problem is unrelated to the bug described here). |
ok I try to configure it with my wife's account give me a minute |
then on my phone with my wife's account is gone, what does this mean? mystery of faith. |
I'm doing some tests, but I think if one has in the password some special character like the "@" app has trouble storing it ... also because it is not stored in public or private key as you can see on the server for my account and goes however, in error .. |
creating Tiger accounts and not everything went well, I believe that users with special characters are not managed well |
@tigernero79 which special chars do you use? And where, in user or pass or both? |
Both @ and # |
Just thought I'd chip in here. I'm also experiencing issues trying to create keys for my admin account.
My special chars EDIT: Changed my password (no special chars), but am experiencing the same behaviour with the CSR error. EDIT 2: Created a non-admin user, but am getting the same error for that user as well. |
Using the latest version from Google Play, whenever I try to enable an encrypted folder, the app shows me a new recovery key phrase, and when proceeding I get an error saying "Keys could not be stored, please try again".
This is on a Pixel 2 XL running Android 8.1.0.
The text was updated successfully, but these errors were encountered: