Я сгенерировал ключ 2 rsa с помощью bouncycastsle, и они были импортированы Gnupg.
[appadmin@dev ~]$ gpg --list-keys
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 6 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 6u
/home/appadmin/.gnupg/pubring.gpg
---------------------------------
pub 2048s/882523AE 2020-02-28
uid test12@test.com
sub 2048r/AAAB65A6 2020-02-28
pub 2048s/90053951 2020-02-28
uid test13@test.com
sub 2048r/2D11755D 2020-02-28
И я хотел бы зашифровать файл, используя приведенную ниже команду, и она показывает следующую ошибку
[appadmin@dev ~]$ gpg -s -u 882523AE -r 882523AE -r 90053951 -o test.PGP -e test.txt
You need a passphrase to unlock the secret key for
user: "test12@test.com"
2048-bit ? key, ID 882523AE, created 2020-02-28
gpg: problem with the agent: Timeout
gpg: skipped "882523AE": Operation cancelled
gpg: test.txt: sign+encrypt failed: Operation cancelled