[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why do I need to give the whole key when trying to delete a public keypair?



On Fri, 26 Apr 2019 21:09:33 +0000,
shirish शिरीष<shirishag75@gmail.com> wrote:

>Dear all,
>
>I am sharing a specific key so it's simple and easy to show -
>
>    $ apt-key list
>
>    /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
>    -------------------------------------------------------------------
>    pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
>          D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
>    uid           [ unknown] Debian Security Archive Automatic Signing
>Key (8/jessie) <ftpmaster@debian.org>
>
>    $ sudo apt-key del D21169141CECD440F2EB8DDA9D6D8F6BC857C906
>    [sudo] password for shirish:
>    OK
>
>Again running the apt-key list tells me that the key is no longer
>there.
>
>I tried it with some different keys if using the short keycode for
>e.g. if just using the first 8 alphanumeric keys it works, but found
>it doesn't.
>

I am not 100% sure I am understanding you correctly, but the short
keyID for a gpg key is the _last_ 8 characters and not the 8 first -
With the key you describe above, the short keyID is C857C906.

This might be the cause of your confusion.

And in addition to this, see

https://gwolf.org/node/4070

best
-- Andreas Rönnquist
mailinglists@gusnan.se
andreas@ronnquist.net


Reply to: