"Robert J. Hansen via Gnupg-users" <gnupg-users@gnupg.org> writes:

Proton Mail has a neat feature where you can fetch the certificate of
a Proton account and, upon importing it into your own local OpenPGP
app, enjoy end to end encryption between yourself and any Proton user
automagically.

The problem is every time I need to do this I need to look up the URL
to fetch certs from, download the cert, import it into GnuPG… nothing
is hard, but it is time-consuming and annoying.

I think I am doing the download part with a quick bash script:

--8<---------------cut here---------------start------------->8---
$ type ssh-import-id-protonmail
ssh-import-id-protonmail is a function
ssh-import-id-protonmail ()
{
   URL="https://mail-api.proton.me/pks/lookup?op=get&search=$1";;
   curl -fsS "$URL" > $TMPDIR/$1.asc;
   printf "Saved pubkey in $TMPDIR/%s.asc\n" "$1"
}
--8<---------------cut here---------------end--------------->8---

then the pubkey must be manually imported but I believe it's just another 
command?

Best,

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to