
31
highlighed above. Using this example you can therefore use the key ID to
delete a key, like this:
gpg --delete-secret-key 2608ae83
gpg --delete-key 2608ae83
Generate (create) a key:
gpg –-gen-key
Export the public key of the designated name to a file:
gpg --export –a keyname > keyname-pubkey.key
Export the secret key of the designated name to a file:
gpg --export-secret-key –a keyname > keyname-
pubkey.key
Import a public key:
gpg –-import filename
Import a secret key:
gpg –-allow-secret-key-import –-import filename
Export the fingerprint of a key to verify a public key:
gpg --fingerprint > keyname-fingerprint
List your public key(s):
gpg --list-keys
List your secret key(s):
gpg --list-secret-key
Delete your secret-key by name:
gpg --delete-secret-keys keyname
Delete a public key:
gpg --delete-keys keyname
Sign and encrypt the given filename with your default key to the receiver:
gpg –se –r receiver_keyname filename
Decrypt a filename with your default-key:
gpg –d filename
Trust Other
Keys
To trust other keys that you’ve imported:
gpg --edit-key “Real_Name_of_Key”
Command> trust => 5 for ultimate trust
Command> check
Command> enable
Command> save
Commenti su questo manuale