Skip to content

Android client crashing on Unlock (works in login), connecting to server with self-signed certs #1087

@alexlucasdev

Description

@alexlucasdev

Describe the Bug

I'm connecting my Android client to a local network server with self-signed certs. Connecting by IP address or machine name, not FQDN. I can logout/login to the android app just fine, see my passwords, edit things, etc. But for some reason if I lock the app and then attempt to unlock it, I get a crash. Stack trace from ADB is:

2020-09-23 07:40:28.996 7611-7611/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.x8bit.bitwarden, PID: 7611
    android.runtime.JavaProxyThrowable: System.Exception: PBKDF2 iteration minimum is 5000.
      at Bit.Core.Services.CryptoService.MakeKeyAsync (System.String password, System.String salt, System.Nullable`1[T] kdf, System.Nullable`1[T] kdfIterations) [0x00087] in <9706884f9841497fa220cf8cf758b49b>:0 
      at Bit.App.Pages.LockPageViewModel.SubmitAsync () [0x0078a] in <27300ef8bf4f403aa2eec77652b94b93>:0 
      at Bit.App.Pages.LockPage.<Unlock_Clicked>b__17_1 () [0x00067] in <27300ef8bf4f403aa2eec77652b94b93>:0 
...

Steps To Reproduce

  1. Environment: Bitwarden_RS server (not sure which server is relevant, but just in case) on local network. mkcert to create self-signed certs. No externally accessible domain name involved.

  2. Install Android client, log in to local bitwarden server

  3. Add some data, delete some data, sync, observe changes via web client if you want. Verify connection appears fine, user has logged in.

  4. Lock client

  5. Attempt to unlock client.

Expected Result

Unlocks app

Actual Result

Crashes app

Environment

Client:

  • Pixel 4 XL
  • Device: [e.g. iPhone6]
  • Operating system: Android 11
  • Build Version 2.6.0 (3162)]
  • Is this a Beta release? [N]

Additional Context

Server:

  • Bitwarden_RS
  • Ubuntu 20.0.4

Misc:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions