I had a problem on a server.
gpg --list-keys and other similar commands worked just fine BUT when trying to encrypt and sign a file GPG looked like was staying in an infinite loop. We also could see in Task manager the tasks and we tried to kill the tasks but this thing did not solve the problem. We had to restart the server to make it work.
The version was 2.2.16.
We used the foll.owing parameters:
--batch --yes --always-trust
Is 2.2.16 an unstable version ? Will a version upgrade solve our issue?
Can one of these parameters influence the GPG behavior ?