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]

Reply via email to