How to use Gnupg’s passphrase-fd argument?

In order to use the gpg option –passphrase-fd in GnuPG v2, you must specify the –batch parameter. I will first explain how –passphrase-fd works, and then get to the examples. –passphrase-fd tells GnuPG which file descriptor (-fd) to expect the passphrase to come from. The standard file descriptors are STDIN (0), STDOUT (1) and STDERR … Read more

How do I verify a gpg signature matches a public key file?

The only way to use a specific public key file like a keyring is if the file is in the GPG (OpenPGP) file format and not an ASCII armoured version (e.g. pubkey.gpg not pubkey.asc). So this will verify the file: gpg –no-default-keyring –keyring /path/to/pubkey.gpg –verify /path/to/file.txt.gpg And this will not: gpg –no-default-keyring –keyring /path/to/pubkey.asc –verify … Read more

gpg: can’t connect to the agent: IPC connect call failed

Even I had the above issue in Ubuntu 20 WSL, I tried all the below | above suggestions, but none worked for me. root@7400-9888K13:/mnt/c/Users/PKammari# wget -q -O – https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add – gpg: can’t connect to the agent: IPC connect call failed What did I do to resolve the issue? remove gpg install … Read more

How to automatically overwrite the output file when running `gpg` (i.e. without being prompted)? [closed]

Adding –batch –yes Example: gpg –batch –yes -u me@bbb.com -r “you@aaa.com” \ –output “OUTPUTFILENAME.xls.pgp” -a -s -e “FILE.xls” Complete example with passphrase file: gpg –batch –yes –passphrase-fd 0 -u me@bbb.com -r “you@aaa.com” \ –output “OUTPUTFILENAME.xls.pgp” -a -s -e “FILE.xls”< \ passphrase.txt

Error “gpg: keyserver receive failed: No name”

I stumbled upon this today and found the fix at Maven Central Repository Documentation. The SKS Keyserver Network is being deprecated and probably gone by now. Just use another GPG key server like: keyserver.ubuntu.com keys.openpgp.org pgp.mit.edu So for example gpg –keyserver keyserver.ubuntu.com –recv-key 908F435E

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)