I was wondering whether a public key added by apt-key
is
- per repository (all packages in a repository are authenticated with the same public key) or
- per package (different packages in the same repository may be authenticated with different public keys).
In other words, what does a public key authenticate: a package, a repository, or something else?
The manpage of apt-key
says
apt-key is used to manage the list of keys used by apt to authenticate packages. Packages which have been authenticated using these keys will be considered trusted.
... It is critical that keys added manually via apt-key are verified to belong to the owner of the repositories they claim to be for.
For example, I was wondering why there is no repository or something else specified as a scope to which a public key is applicable to?
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Thanks.