'No pinentry' error (--pinentry-mode loopback with --delete-secret-and-public-key)

Carola Grunwald caro at nymph.paranoici.org
Sat May 7 17:32:13 CEST 2016


Hello Dashamir,

on Sat, 7 May 2016 14:18:39 +0200, you wrote:

>On Sat, May 7, 2016 at 12:59 PM, Carola Grunwald <caro at nymph.paranoici.org>
>wrote:
>
>> Hello,
>>
>> on Wed,  4 May 2016 22:55:34 +0000 (UTC), I wrote:
>>
>> >I need help with GnuPG 2.1.12 migrating an encryption tool from 1.4.20.
>> >
>> >I'm trying to run the --delete-secret-and-public-key command with the
>> >passphrase entered through stdin, which doesn't get activated ('delete
>> >key failed: No pinentry').  With --export-secret-keys I was successful
>> >this way (also added below).  Or can I use --passphrase somehow?
>>
>
>Have you tried: `gpg --batch --delete-secret-and-public-keys "fingerprint"`
>?
>This works for me and it does not ask for a passphrase.
>
>Take care,
>Dashamir

Thanks for your reply.

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     ]

Kind regards

Caro



More information about the Gnupg-users mailing list