Questions tagged [gpg-agent]

GPG-Agent is a daemon to manage secret (private) keys independently from any protocol. Questions related to encrypting and signing data with GnuPG aka GPG can be tagged with GPG-Agent

56 questions
180
votes
9 answers

How can I restart gpg-agent?

Some changes in the GnuPG configuration demands a gpg-agent restart / reboot (according to the doc), but... How can I do that? I tried gpg-agent restart, service gpg-agent restart, but did not succeed.
Felipe
  • 2,338
26
votes
1 answer

How to delete a subkey on Linux in GnuPG?

I would like to delete an OpenPGP subkey of mine on Linux (L)Ubuntu 16.04 in GnuPG. It's a kind of "blank" useless key (see below key 33333333). I have not uploaded it to key servers, so I think it's ok to delete without revoking it. gpg2…
aldaron
  • 513
  • 2
  • 5
  • 7
23
votes
2 answers

gpg2: no secret key

I've been using enigmail for over a year without issue, and today it doesn't work. I found the following interesting fact: gpg --decrypt something.gpg # this works gpg2 --decrypt something.gpg # this fails So something is broken with gpg version 2…
rexroni
  • 343
15
votes
4 answers

How to prevent gpg-agent from timing out during passphrase collection?

I'm calling out to gpg2 in a CLI script for symmetrical encryption of a local file. It appears to have gpg-agent prompt for a passphrase via some CLI, text based UI. As long as I'm around to enter the passphrase everything works fine. If I'm not,…
rcampbell
  • 633
13
votes
4 answers

I want to make pinentry use GUI locally and CLI on SSH

I need to be able to GPG-sign git commits in two different Linux environments. In a full GUI X-Window setup using the GUI-based password dialog box In an SSH, without X-forwarding, using command-line only password entry In both cases I need to be…
Chindraba
  • 2,058
8
votes
3 answers

GnuPG 2.2 refuses secret key import: "error sending to agent: operation cancelled"

I'm trying to import my PGP identity including secret keys to a new computer by connecting to a computer which has the secret key, and running ssh othercomputer cat myself.gpg | gpg2 --import When doing this, it looks like GPG is importing the…
kqr
  • 219
7
votes
3 answers

gpg2 running unreasonably slow, only when agent does not have password cached

Recently, my pass password manager has started taking upwards of 45 seconds to bring up the gpg-agent password prompt for my master password, which is super annoying when I'm trying to log into a website and have to sit there staring at the password…
7
votes
1 answer

gpg-agent: a gpg-agent is already running - not starting a new one

Trying to configure gpg in a way that I enter passphrase only once, and it will work for the whole session. However, this is what I'm getting: $ pgrep gpg-agent | wc 0 0 0 $ gpg-agent --daemon gpg-agent: a gpg-agent is already…
xpt
  • 9,385
  • 44
  • 120
  • 178
7
votes
2 answers

Gpg-agent under Windows as SSH Agent for git bash

gpg-agent has options "--enable-ssh-support" and "--enable-putty-support" that allows it to use it as a drop-in replacement for the well-known ssh-agent. I've been pulling my hair out trying to figure out how exactly make this work in windows and…
Ron
  • 191
7
votes
5 answers

Can't import key with gpg on arch linux

I'm a arch 4.9.8-1 system. I wanted to install linux-vfio kernel for gpu passthrough and to fix a problem with a bad IOMMU group. Trying to install the linux-vfio kernel I got the following error for missing keys. $ yaourt -S linux-vfio . . . ==>…
Haroon
  • 91
6
votes
2 answers

How to configure PuTTY + gpg-agent to connect an SSH Linux server

I have a key-pair generated with Kleopatra (from Gpg4win 3.0 suite). I've converted the public key to an RSA ssh key and add it to the authorized_keys file in a Linux box. On the Windows machine I've configured the gpg-agent.conf file…
5
votes
3 answers

gpg-agent ignoring cache config macOS sierra

I installed gpg via homebrew. I have a ~/gpg-agent.conf file as follows: allow-preset-passphrase default-cache-ttl 1209600 max-cache-ttl 1209600 max-cache-ttl-ssh 1209600 My .bashrc (actually: ~/.bash_it/custom/gpg-agent.bash) has export…
notbrain
  • 628
5
votes
1 answer

Synchronize GnuPG 1.4 and GnuPG 2.1 keychains

While importing my keys to GnuPG on a new system, I considered the following: Question Is it possible to synchronize the gpg and gpg2 (gpg2.1) keychains? Is it wise to do so? Considering I found this answer to "Are GnuPG 1 and GnuPG 2 compatible…
hub
  • 501
  • 1
  • 5
  • 15
4
votes
1 answer

gpg: skipped "12345689": Unusable secret key / how to use signing subkey for gpg?

As you see, I have a key with id 12345689, and I'm trying to sign with it in git gpg -k /home/lz/.gnupg/pubring.kbx --------------------------- pub rsa4096 2020-03-02 [C] 12345689 uid [ unknown] Person Person sub …
Rafaelo
  • 141
4
votes
1 answer

yubikey/gpg-agent always asking for my PIN when running git commit

recently, git has been asking me for my yubikey pin every 3 or 4 times after i've already typed in my pin. this didn't use to happen before. i'm thinking maybe the card isn't getting read correctly or is getting disconnected somehow. it's become…
reuel
  • 41
1
2 3 4