'No pinentry' error (--pinentry-mode loopback with --delete-secret-and-public-key)
Dashamir Hoxha
dashohoxha at gmail.com
Tue May 10 04:17:07 CEST 2016
On Sat, May 7, 2016 at 5:32 PM, Carola Grunwald <caro at nymph.paranoici.org>
wrote:
>
> You're right, there's no passphrase request with
>
> | d:\gpg>gpg.exe --batch --homedir "d:\gpgdat" --no-auto-key-locate
> --no-default-keyring --keyring "d:\gpgdat\pubring.kbx"
> --delete-secret-and-public-key "66C040ADBE2C5728022F81DCCE09E0556C2C8CE0"
>
> But that way a 'Pinentry' window opens, which I have to avoid:
>
> | Pinentry
> |
> | Do you really want to permanently delete the
> | OpenPGP secret key:
> | "John Doe <doej at example.com>"
> | 2048-bit RSA key, ID 6C2C8CE0,
> | created 2016-04-23.
> | ?
> |
> | [ Delete key ] [ No ]
>
> followed by
>
> | Pinentry
> |
> | Do you really want to permanently delete the
> | OpenPGP secret subkey key:
> | "John Doe <doej at example.com>"
> | 2048-bit RSA key, ID 174B70A0,
> | created 2016-04-23 (main key ID 6C2C8CE0).
> | ?
> |
> | [ Delete key ] [ No ]
>
I agree, this is anoying. And the docs say that with --batch and --yes and
"fingerprint" no questions will be asked (this is the meaning of batch
after all).
But I just realized that you can delete everything on
"$GNUPGHOME/private-keys-v1.d/" and all the private keys will be deleted,
no questions asked. This is simpler and cleaner.
Dashamir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160510/29402af4/attachment.html>
More information about the Gnupg-users
mailing list