[EMAIL PROTECTED] wrote:
Can anyone shed some light on why this doesn't work?

$certificate = "/some/where/file.pem";
$encoded = "'" . sha1($_) . "'";

$signed = system(`openssl rsautl -certin $certificate -encrypt -in
$encoded`);

$signed doesn't end up as a certificate signed value, it ends up as this
number 65280.

See:

   perldoc -q "Why can't I get the output of a command with system()?"

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to