Aegis import to KeepassXC
Unable to access KeePassXC database after importing TOTPs from Aegis.
Command used:
pimport -af keepassxc aegis aegis_plain.json --out keepassxc_db.kdbx -k some_secret.txt
Despite no errors, when I am trying to access the database, getting following error:
Error while reading the database: Invalid number value
Same Aegis export is working fine with pass-otp without any problems.
Can you provide the output with the -vvv option used
Sorry for so late reply, I actually lost the laptop on which I was doing this earlier.
Now when I retried this on my new laptop, I faced the issue again. I don't see any error in the verbose logs.
But keepassxc throws this error:
Error while reading the database: Invalid number value
Below is the command and the output, Command:
pimport -af -vvv --out keepassxc_db.kdbx -k some_secret.txt keepassxc aegis aegis_plain.json
Output:
. Trying to guess file format.
. Importer: aegis, Format: json, Version:
. Importing passwords from Aegis to KeepassxcKDBX
Password for keepassxc_db.kdbx:
. Path: [email protected]
. Data:
otpauth: otpauth://totp/totp-secret?secret=JBSWY3DPEHPK3PXP&[email protected]&algorithm=SHA1&digits=6&period=30
type: totp
icon: none
. Path: [email protected]
. Data:
otpauth: otpauth://hotp/totp-secret?secret=JBSWY3DPEHPK3PXP&[email protected]&algorithm=SHA1&digits=6&counter=10
type: hotp
icon: none
(*) Importing passwords from aegis to keepassxc
. Passwords imported from: aegis_plain.json
. Passwords exported to: keepassxc_db.kdbx
. Number of password imported: 2
. All data imported
. Passwords imported:
[email protected]
[email protected]
Regarding the error, have you seen this issue https://github.com/keepassxreboot/keepassxc/issues/3505 especially this comment: https://github.com/keepassxreboot/keepassxc/issues/3505#issuecomment-527709418
So, they might be an issue in the way pass-import parse the data. However, without an example database with this issue I will not be able to fix it.
@roddhjav I used aegis.json database from repo's test folder for above sample output.
https://github.com/roddhjav/pass-import/blob/master/tests/assets/db/aegis.json
Any update about this issue ? I encounter exactly the same error with my aegis backup or aegis test file: https://github.com/roddhjav/pass-import/blob/master/tests/assets/db/aegis.json