In the Web SSH console for my Azure Linux host, the following command:
gpg --homedir=$homeDir --batch --gen-key pgp-params.txt
results in this:
gpg: error running '/usr/bin/gpg-agent': exit status 2
gpg: failed to start agent '/usr/bin/gpg-agent': General error
gpg: can't connect to the agent: General error
gpg: agent_genkey failed: No agent running
gpg: key generation failed: No agent running
Running the same command in the Kudu Bash console
gpg --homedir=$homeDir --batch --gen-key pgp-params.txt
results in this:
gpg: can't connect to the agent: IPC connect call failed
gpg: agent_genkey failed: No agent running
gpg: key generation failed: No agent running
Either way, the following two files are generated, but nothing else:
private-keys-v1.d
pubring.kbx
What am I missing in order to successfully generate keys in this environment?
(Ultimately, I want to have my Azure Function App generate keys--I was running into problems which lead me to stepping through this in the various consoles)