Automaticaly import public keys by e-mails

Roscoe eocsor at gmail.com
Mon Aug 8 18:44:24 CEST 2005


Well, I don't know about a pure gnupg way but where theres a idea
theres a broken piece of sh script trying to implement it! And without
further ado I present my broken piece of sh script:

$ cat > emaillist
dsrbecky at gmail.com
eocsor at gmail.com
$ for i in `cat emaillist`; do  lynx -dump
"http://stinkfoot.org:11371/pks/looku                
p?op=index&search=$i"|grep '1. http://'|awk '{print $2}'|xargs lynx
-dump|gpg --                 import; done
gpg: key 2DC6523A: public key "David Srbecky <dsrbecky at gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model
gpg: depth: 0  valid:   4  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 4u
gpg: depth: 1  valid:   4  signed:   0  trust: 1-, 0q, 0n, 3m, 0f, 0u
gpg: next trustdb check due at 2005-10-06
gpg: key 699B3EBE: "Roscoe <eocsor at gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
$ 

That might not be immediately usable, but you get the idea :)

On 8/9/05, David Srbecky <dsrbecky at gmail.com> wrote:
> Hello,
> 
> I have a long list of emails. I want to look them up on a keyserver and
> automatically import any matches.
> 
> I tried
> 
> gpg --search-keys mail at gmail.com < input.txt
> 
> where input.txt is "1,2,3,4,5\n"
> but it did not work.
> 
> 
> Thanks for help.
> 
> David
> 
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 
> 
> 
>



More information about the Gnupg-users mailing list