In GnuPG, if you get an error saying “There is no assurance this key belongs to the named user” when trying to encrypt, you need to sign the public key.

You can sign the key by typing “gpg --sign-key user-id” at the command prompt.

Footnote: I came across this whilst migrating our e-commerce system to a new server. The system uses GnuPG to encrypt the order/credit card information and then emails it to our sales team. I’m making sure I document the process fully, so that I don’t have to spend so much time figuring this stuff out again! 🙂

Written by Phil Wiffen

Phil is an IT Professional working in Cambridge, England. He generally blogs about useful solutions that he comes across in his work/play.

6 Comments

Mehr

I use “gpg –sign-key user-id” command but I received error again. Then I change trust level to 5 and error message was no longer reported.

Leave a Reply

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