PHP Frontend

zim2901 timo.wolf at itk-engineering.de
Tue Jan 20 15:19:19 CET 2009




BruderB wrote:
> 
> 
> 
> zim2901 schrieb:
>> Hi,
>> 
>> I want to create a frontend to generate gpg public keys in PHP. There is
>> a
>> function called shell_exec. This function, execute a command via shell.
>> But
>> you can only pass one command to the funktion. 
>> If I start cmd.exe and take the command "gpg --gen-key", gpg opens a
>> dialog.
>> My problem is that gpg only works with this dialog. It gives a question
>> and
>> anticipate a responce. So I tried to pipe the necessary informations with
>> a
>> txt.- file, but it doesn't work!
>> My question is, if it is possible to generate keys without do that
>> dialog?
>> In an other forum, sombody explains that this is not possible, because of
>> secureness... If that is true, my whole projekt stops!
>> 
> 
> Hej Timo,
> 
> I guess the keyword for google is 'unattended keygeneration'.
> 
> You will be prompted to the batch mode of gpg:
> 
> gpg --batch --gen-key < ./keygen
> 
> Regards,
> 
> 
> Boris
> 
> Ok, thank you for your answers! I think I will do it with the batch file.
> I have another question! I also have to read out the fingerprint of an
> existing key.
> But I have s similar problem, the shell funktions don't give me any reply.
> If I do it direkt at the shell, 
> I get the fingerprint, but with php funktions not. It is not a problem of
> php, I tested the funktions with other files!
> Has anybody an idea?
> 
> Thank you! zim2901
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 
> 

-- 
View this message in context: http://www.nabble.com/PHP-Frontend-tp21544949p21563939.html
Sent from the GnuPG - User mailing list archive at Nabble.com.




More information about the Gnupg-users mailing list