RE: Capturing Enter PEM pass phrase prompt

2012-01-27 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Matt Caswell (fr...@baggins.org) > Sent: Thursday, 26 January, 2012 18:16 > I think that the stream that it writes to is platform specific. > So depending on your platform it will be one of stderr, con > or /dev/tty. > Since you said you've a

Re: Capturing Enter PEM pass phrase prompt

2012-01-26 Thread Matt Caswell (fr...@baggins.org)
I think that the stream that it writes to is platform specific. The default implementation for ui_write_string is in ui_openssl.c: static int write_string(UI *ui, UI_STRING *uis) { switch (UI_get_string_type(uis)) { case UIT_ERROR: case UIT_INFO: fputs(UI_get0_out

Capturing Enter PEM pass phrase prompt

2012-01-26 Thread Robert O'Hearne
I am using a Java program to call a Perl script which calls curl to upload a file to a FTPS server. The FTPS server has a certificate which requires a pass phrase. My Java program reads from standard error looking for the "Enter PEM pass phrase:" prompt so I can then write the pass phrase to