gpg trust from command line
rahul.raviz at gmail.com
Thu Nov 26 14:02:53 CET 2009
I have done the trusting part automated on my linux box like the following.
Give a try anyways and let me know whether it was helpful or not. I did many
google search and could not find any method described for this. The
following method worked gr8 for me and is the one which I created myself
For trusting it as 3, use 4 and for 5, use 6 and so on...
1. gpg --import key.pk - Import your key
2. echo $(gpg --list-keys --with-fingerprint --with-colons | tail -2 |
head -1 | tr -s ":" ":"| cut -d ":" -f2):4: > /tmp/somefile1 - take the
finger print and copy to a temp file.
3. gpg --import-ownertrust < /tmp/somefile1 - import the finger print to
the trust data base. Done!!!!
You can check the trusting part by typing the below command
1. gpg --export-ownertrust
On Thu, Nov 26, 2009 at 4:57 PM, Piotr Bratkowski <pioterbrat at o2.pl> wrote:
> I need to invoke trust command but from linux shell. I was thinking that
> this will do:
> gpg --edit host_name trust 3
> to set my trust marginal for host_name, but it didn't, it took me to the
> gpg command line.
> I need this becouse I'm currently writing program that is using gpg. It's
> in C so making it to write to stdin of gpg would be a lot of fuss, as a
> command line I can simply use system function.
> So my question is is it possible?? If yes how??
> Piotr Bratkowski
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnupg-users