gpg trust from command line
Rahul R
rahul.raviz at gmail.com
Thu Nov 26 14:23:51 CET 2009
:-) :-) I am really happy to hear that it worked great for you also.... :-)
On Thu, Nov 26, 2009 at 6:46 PM, Piotr Bratkowski <pioterbrat at o2.pl> wrote:
> Hello,
>
> Thanks, you have just rescued me :). It is working really great.
>
> Regards,
> Piotr Bratkowski
>
>
>
> Rahul R pisze:
>
>> Hi,
>>
>> 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 <http://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<mailto:
>> pioterbrat at o2.pl>> wrote:
>>
>> Hello,
>>
>> 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??
>>
>> Regards,
>> Piotr Bratkowski
>>
>> _______________________________________________
>> Gnupg-users mailing list
>> Gnupg-users at gnupg.org <mailto:Gnupg-users at gnupg.org>
>>
>> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>>
>>
>>
>>
>> --
>> Thanks,
>> Regards,
>> Rahul R
>> Mob: 09008030921
>>
>
>
--
Thanks,
Regards,
Rahul R
Mob: 09008030921
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20091126/651627c2/attachment.htm>
More information about the Gnupg-users
mailing list