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

852 Comments

  1. I love your blog.. very nice colos & theme. Did you make
    this website youurself or did you hire someone tto do
    it forr you? Plz anseer back as I’m looking to create my own blog andd would likje to
    find out where u got thhis from. appreciae iit xnxx

Leave a Reply

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