Skip to content

Add photo to key PGP/GPG using GnuPG

Good Night,

To add your picture to your PGP key using GnuPG on Linux use:

List the certificates:

gpg –list-keys

Find your and yours certificate will start with:

pub 1024D/XXXXXXXX YYYY-MM-DD

Use this command to edit your key:

gpg –edit-key XXXXXXXX

Add your picture using:

addphoto

You must use a JPG photo. The recommended size is something near 240×288. If you use big images, your certificate will be HUGE.

Add the path to your photo:

/home/user/dir/dir/photo.jpg

The system will ask for confirmation, double check it. And press Y if it is correct.
Type your password when the system ask for it.

Save the modifications

save

Send your key to a key server.

gpg –keyserver keyserver.cais.rnp.br –send-keys XXXXXXXX

That is it.

Best Regards,
Matheus

Published inLinux

498 Comments

  1. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

Leave a Reply

Your email address will not be published. Required fields are marked *