Using GPG to encrypt files : exchange
But what do you do if you want to be able to exchange
encrypted files with someone else and both of you be able to decrypt them?
1) Copy your public keys to a public key server on
the Internet.
gpg --keyserver hkp://subkeys.pgp.net --send-key key_ID
gpg --keyserver hkp://subkeys.pgp.net --send-key 9DF54AB2
key ID is:
gpg --fingerprint key_owner_email
2) You can also just directly exchange keys between systems.
a)
gpg --export --armor key_owner_email > public_key_filename
gpg --export rtracy@openSUSE > gpg.pub
b)
Each user can then copy their key file to the other users.
scp gpg.pub student@fedora:
c)
Once this is done, each user should import the other users’ public
keys into their GPG keyring using the
gpg --import public_key_filename
pg --import gpg.pub
Encryption VI
No comments:
Post a Comment