Find the Public Key of a ProtonMail User

ProtonMail is (in their own words) “an easy to use secure email service with built-in end-to-end encryption and state-of-the-art security features.” I have been using it for a while now and absolutely love it.

While updating the contact page on this website, I realized I needed an easier way to provide my PGP key to anyone who reads my website without putting the key itself on the page (for several reasons). After a bit of search, I found the key server used by ProtonMail which could be used to retrieve the public key of any user.

Download the Key

Browse to the following link in a browser of your choice. Replace the email address with the address you are interested in finding its key.

https://api.protonmail.ch/pks/lookup\?op\=get\&search\=contact%40ahmedmusaad.com

Retrieve the Key using curl

curl -XGET https://api.protonmail.ch/pks/lookup\?op\=get\&search\=contact%40ahmedmusaad.com