Should I put my public PGP key on my website so that people can securely contact me? I have seen personal sites where their public key is at the bottom of the page, such as this site by the computer scientist Peter Gutmann.

  1. How should I include the key in my page?
  2. Is there a standardized way to include the key?

Many sites include them at the bottom of the page.


You can add it to your web page as in the link you cited, or a slightly more elegant way might be to upload it to a public PGP Key Server, such as this or this one, and then add the link to the page for your key on your web page.

If you also use the link within your emails and files, then you'll be able to update your public key in just one place.

You could also use a CAPTCHA to prevent bots from indexing your key, and/or use JavaScript to copy it for the user (between the BEGIN and END blocks).

| improve this answer | |
  • Thanks, This key server keyserver.pgp.com/vkd/GetWelcomeScreen.event sounds best suited for my needs. – kyle k Aug 3 '13 at 9:35
  • No problem. Other than the above, there's really no "standard" way to add it to your page, though you should include the BEGIN and END blocks if you decide to just print it there. – dan Aug 3 '13 at 9:37
  • BTW, the MIT Key Server is pretty popular among academics too, as indicated in CS department help docs like here. – dan Aug 3 '13 at 9:47
  • Looks like you added a link to your bio for your public key at the MIT Key Server - interesting idea, maybe you'll start a trend :-) – dan Aug 4 '13 at 7:48

If you want to add it to your site, I would suggest using a separate page to hold it. Put a link to that page at the bottom of every page.

For the key itself, it should be in a textarea element. This allows the exact key to be copy-pasted more easily without extra spaces or any formatting. You can use the readonly attribute to prevent accidental modification of the field.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.