apt-key
Key management utility for the APT Package Manager on Debian and Ubuntu. tldr-pages
On Linux
Linux
Key management utility for the APT Package Manager on Debian and Ubuntu. Note: This command is deprecated (except for the use of apt-key del in maintainer scripts).
List trusted keys
apt-key listIdentifyAdd a key to the trusted keystore
apt-key add public_key_file.ascIdentifyDelete a key from the trusted keystore
apt-key del key_idIdentifyAdd a remote key to the trusted keystore
wget --quiet --output-document - https://host.tld/filename.key | apt-key add -IdentifyAdd a key from keyserver with only key ID
apt-key adv --keyserver pgp.mit.edu --recv key_idIdentify