Hi and thanks for your reply,

I finally resolved it:
The problem comes from the "openssl ca" command, I find that all outputs are
sent to bio_err instead of standard output, and that's confusing PHP/IIS.

thanks again
Regards

Maxime

----- Original Message -----
From: "Brad House" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 2:28 AM
Subject: Re: Did anybody execute openssl with PHP?


> Or how about using popen ??
> you might have to specify an absolute path as well.
>
> -Brad
>
> Grant wrote:
>
> > > I am trying to execute this command "openssl ca -batch -msie_hack -in
> > > req.pem -out crt.pem -config myconf.cnf -key "mykey" " in a PHP sript
with
> > > the exec function but the output of the command that should be
retained in a
> > > variable is partially sent to the output (the web page) causing
display
> > > problems....
> >
> > Have you redirected standard error?
> >
> > $blah = exec("openssl ca -batch -msie_hack -in eq.pem -out
crt.pem -config myconf.cnf -key 'mykey' 2>&1");
> >
> > ______________________________________________________________________
> > OpenSSL Project                                 http://www.openssl.org
> > User Support Mailing List                    [EMAIL PROTECTED]
> > Automated List Manager                           [EMAIL PROTECTED]
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

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

Reply via email to