The pass phrase input routine reads from the consol not from the standard
input.
I gess that it is more secure than reading from stdin.

Under Windows I managed to write the password to to the console.
It works but it is quite complicated and I don't know if it is possible to
do the same with unix.
There might be simpler ways...

Nicolas Roumiantzeff.

-----Message d'origine-----
De : Markus Wagner <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : lundi 31 juillet 2000 22:00
Objet : Piping into PEM pass phrase!!!


>Hello,
>
>I am building a CA frontend in C/C++ and need to automatically provide
>input for the PEM pass phrase dialog when signing CSRs.
>
>I open three pipes for stdin/stdout/stderr, fork to openssl and write
>the pwd into stdin. But openssl doesnt read my input.
>
>The thing is: I already did this in Perl using IPC::Open3 and it worked
>fine.
>
>Could anybody tell me why OpenSSL doesn't read my input and how to do
>it?
>How do I have to dup the descriptors? What's wrong??
>
>Thanks very much,
>
>Markus


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to