Questions tagged [gpg-agent]
64 questions
6
votes
1 answer
GPG: How to delete bad session key and get asked for encryption password again?
I tried to solve this Geocache:
https://www.geocaching.com/geocache/GC67EXW_signaturbruch
And it gave me a password prompt, when I tried to solve gpg message.asc, but I didn't know the correct password back then.
Now I know it, but it just…

Martina Freundorfer
- 61
- 1
- 4
6
votes
1 answer
Signing git commits on macOS keeps asking for passphrase
I've set up Git commit signing on two other Macs in the past, I'm trying to set it up on a new one and failing for reasons that I don't understand. All machines are running High Sierra 10.13.6 (17G65)
1) Installed packages via Homebrew
brew install…

flod
- 103
- 5
5
votes
2 answers
Prevent GPG key sharing in VSCode Remote Container
The following paragraph in the official docs describes how to enable GPG key sharing (from localhost to Remote Container) in VSCode (https://code.visualstudio.com/docs/remote/containers#_sharing-gpg-keys).
The instructions (for Linux) simply state…

Karl
- 5,573
- 8
- 50
- 73
5
votes
1 answer
Cache GPG passphrase for git signing on Mac
There is already a more generic thread on the topic, Remember GPG password when signing git commits, but the answer there doesn't work for me. My environment is:
Mac (macOS@10.15.7)
Bash (the default that comes with macOS)
Git v2.27.0
GnuPG v2.2.20…

Paul Razvan Berg
- 16,949
- 9
- 76
- 114
5
votes
0 answers
gpg: can't connect to the agent: IPC connect call failed, cannot kill gpg-agent
gpg-agent constantly logs (every 2 seconds) into syslog:
gpg: can't connect to the agent: IPC connect call failed
I followed this but it is really not possible since once the process is killed, it automatically respawns and I have not way of killing…

atapaka
- 1,172
- 4
- 14
- 30
5
votes
1 answer
gpg2: How to use another secret and public keyring?
I know that gpg2 uses the gpg-agent to get private-keys. Per default they are stored in ~/.gnupg/private-keys-v1.d.
Now I'm questioning myself if it's possible to instruct gpg to use another agent on another machine? The documentation is not very…

Sebi2020
- 1,966
- 1
- 23
- 40
5
votes
1 answer
GPG key signing party w. detached master key and sub-keys on yubikey
My current setup is a as follows:
sec# rsa4096/E97E8047 2016-07-18 [C]
uid [ultimate] Jonas Finnemann Jensen
uid [ultimate] Jonas Finnemann Jensen
uid [ultimate] Jonas Finnemann…

jonasfj
- 2,349
- 2
- 24
- 22
4
votes
0 answers
Does gpg-agent.conf support environment variables for extra-socket option and in general?
I'm using gpg-agent (GnuPG) 2.3.4 on M1 Mac, OS X 12.1. I want to use the extra-socket option in ~/.gnupg/gpg-agent.conf. If I have
extra-socket $HOME/.gnupg/S.gpg-agent.extra
and run gpgconf --kill gpg-agent; and gpg-connect-agent reloadagent…

David Xia
- 5,075
- 7
- 35
- 52
4
votes
3 answers
gpg: No keyserver available
on my server i try to get the keys and execute the command
gpg --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
but I get that the server is not available
gpg: keyserver receive failed: No keyserver available
but when i do the same on…

lignumq
- 171
- 1
- 2
- 6
4
votes
1 answer
When trying to sign git commit I get error gpg: DBG: Using CREATE_BREAKAWAY_FROM_JOB flag
I'm trying to make a new singed commit, but I get an error :
gpg: DBG: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC connect call failed
gpg: keydb_search failed: No agent running
gpg: skipped "C4583B304CDA4CA0": No agent…

kamack38
- 83
- 7
4
votes
0 answers
Entirely disable gpg-agent caching for all users
I want to disable GPG caching entirely. Ie, symmetrically encrypt a file, then have it ask for a password every time.
Specifically, I'm using GPG 2.2.14 to try to do:
gpg -c file.txt
I've tried adding a ~/.gnupg/gpg-agent.conf with…

ardunn
- 79
- 2
- 9
4
votes
3 answers
keychain: Warning: can't find gpg key; skipping
I'm trying to use keychain(1) with my GnuPG key on Debian Testing. However, I get the following message with this command:
$ keychain --agents gpg MYPGPKEY
* keychain 2.8.2 ~ http://www.funtoo.org
* Starting gpg-agent...
* Warning: can't find…

Petr Razumov
- 1,952
- 2
- 17
- 32
3
votes
0 answers
Strange issue with terminal getting messed up: vim/coc-nvim/golang/gopls/zsh/gpg
I am having a very annoying issue and I don't know exactly what's the problem. It could have loads of possible causes, so please bear with me trying to fix this.
I use vim to code. I use coc.nvim as plugin for code completion and navigation.…

transient_loop
- 5,984
- 15
- 58
- 117
3
votes
1 answer
Why are there special symbols on git's gpg-signed commits
Whenever I use my gpg key to sign commits I always get these weird symbols in the commit's signature.
$ git log --show-signature
commit 16d7a1f5403ca0332146da7bcfe4594f6d997c2b (HEAD -> master)
gpg: Signature made 07/03/2021 22:47:48…

Orbs
- 41
- 1
- 5
3
votes
0 answers
Where should I specify a pinentry program for GnuPG 2.0 and later?
I'm going to introduce git-crypt or git-secret to encrypt the credentials information described in a git repository.
This needs GnuPG(GPG) to provide a way of encryption. I'v already installed the following program with…

BrainVader
- 383
- 1
- 3
- 7