Public bug reported: I created a kdbx file through the KeePassX GUI application. This database is locked with both a password and a key file. I try to unlock the database through the kpcli command line tool with the following commands inside the kpcli prompt:
open <my kdbx file> <my key file> I am then prompted for my password. After I enter my password, kpcli presents to me the following error message: Couldn't load the file kpstuff2.kdbx: The database key appears invalid or else the database is corrupt. However, I am able to unlock the file through the KeePassX GUI application. I am also able to unlock other database files that are locked only with a password. I am unable to unlock databases that are locked with both a password and a key file. Expected behavior: I think kpcli should be able to unlock a database with a password and a key file if the key file is generated through KeePassX. System information: Description: Ubuntu 18.04.4 LTS Release: 18.04 kpcli package info: kpcli: Installed: 3.1-3 Candidate: 3.1-3 ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: kpcli 3.1-3 ProcVersionSignature: Ubuntu 4.15.0-96.97-generic 4.15.18 Uname: Linux 4.15.0-96-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.14 Architecture: amd64 CurrentDesktop: XFCE Date: Tue Apr 21 18:01:58 2020 EcryptfsInUse: Yes PackageArchitecture: all SourcePackage: kpcli UpgradeStatus: Upgraded to bionic on 2019-03-06 (412 days ago) ** Affects: kpcli (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1874161 Title: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs