How to delete a secret key in batch mode?
Bernard
bht at actrix.gen.nz
Thu Sep 15 05:20:24 CEST 2005
Hi David
Thanks for your help.
Where can I find the syntax for deleting a secret key by fingerprint?
I get an eof error when I use what I guess is the fingerprint:
C:\gnupg\gpg.exe --homedir "\tmp" --fingerprint 1CBB4C01
pub 1024D/1CBB4C01 2005-09-14
Key fingerprint = 361C C290 F145 7D9B AB8F D49C 18C3 9694 1CBB
4C01
uid bttest$actrix.gen.nz (Test key comment)
<bttest$actrix.gen.nz>
sub 1024g/87D138B1 2005-09-14
C:\gnupg\gpg.exe --homedir "\tmp" --batch --delete-secret-key "361C
C290 F145 7D9B AB8F D49C 18C3 9694 1CBB 4C01"
gpg: key "361C C290 F145 7D9B AB8F D49C 18C3 9694 1CBB 4C01" not
found: eof
gpg: 361C C290 F145 7D9B AB8F D49C 18C3 9694 1CBB 4C01: delete key
failed: eof
Thanks again
Bernard
On Wed, 14 Sep 2005 21:00:30 -0400, you wrote:
>On Thu, Sep 15, 2005 at 11:38:22AM +1200, Bernard wrote:
>> Hi,
>>
>> I have added a secret key in batch mode.
>>
>> Now I want to delete it in batch mode.
>>
>> gpg prints an error:
>>
>> gpg: can't do that in batchmode
>> gpg: (unless you specify the key by fingerprint)
>>
>> The command I use is:
>>
>> C:\gnupg\gpg.exe --homedir "\tmp" --yes --batch --delete-secret-key
>> 1CBB4C01
>>
>> It looks like I am doing what the error message requests: Specifying
>> the key by fingerprint.
>>
>> Am I overlooking anything?
>
>1CBB4C01 is not a fingerprint. Do this:
>
> gpg --fingerprint 1CBB4C01
>
>The resulting value is a fingerprint.
>
>David
>
>_______________________________________________
>Gnupg-users mailing list
>Gnupg-users at gnupg.org
>http://lists.gnupg.org/mailman/listinfo/gnupg-users
More information about the Gnupg-users
mailing list