passbolt_cli icon indicating copy to clipboard operation
passbolt_cli copied to clipboard

No plain password with -q --no-tty

Open ucola opened this issue 4 years ago • 4 comments

hi all

we can decrypt the password, but don't became the plain password back.

passbolt get XXXXXX-c3c8-443d-XXXX-54ccbbad0ec2 | gpg -q --no-tty PASSWORT: Signature made Tue 08 Sep 2020 09:19:23 AM UTC gpg: using RSA key XYZ gpg: Can't check signature: No public key

Any idea? We installed it with the documentation. gpg (GnuPG) 2.2.4

Thank you for helping

ucola avatar Jun 01 '21 09:06 ucola

The same here!

hugodeaguiar avatar Sep 08 '21 11:09 hugodeaguiar

@ucola Did you import the server's public key into the GnuPG keyring? https://github.com/passbolt/passbolt_cli#domain-config

garrettboone avatar Sep 08 '21 12:09 garrettboone

I just tested on current version, and can confirm that passbolt get <uuid> | gpg -q --no-tty is returning the plain text password plus the text above. Sorry, I was misunderstanding the issue.

garrettboone avatar Sep 08 '21 13:09 garrettboone

If you're not interested in warnings in general, you could throw 2>/dev/null on the end of the command line. Or, you could post them to a logfile: passbolt get <uuid> | gpg -q --no-tty 2>>logfile

garrettboone avatar Sep 08 '21 13:09 garrettboone