not checked, but something like:
$fp = popen("|$Openssl_cmd req -new -config /usr/lib/openssl.cnf " .
"-key $cert_dir/key -days $days -out $cert_dir/request 1>&2") ||
return("doh!");
fputs($fp, $subject['C'] . "\n");
...
...
...
pclose($fp);
On Wed, 12 Jun 2002 [EMAIL PROTECTED] wrote:
>
>
> What would be the equivalent of this in php. Mostly the open (REQ and
> the print REQ <<USER_INFO; to the close REQ; Could somebody just point me in the
>write
> direction.
>
>
>
> open (REQ, "|$Openssl_cmd req -new -config /usr/lib/openssl.cnf "
> . "-key $cert_dir/key -days $days -out $cert_dir/request 1>&2") ||
> return MSG_error("ssl_cant_gen_request");
>
> print REQ <<USER_INFO;
> $subject{'C'}
> $subject{'ST'}
> $subject{'L'}
> $subject{'O'}
> $subject{'OU'}
> $subject{'CN'}
> $subject{'Email'}
> USER_INFO
> ;
> close REQ;
>
>
>
>
>
> --
> Best regards,
> rdkurth mailto:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php