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.
$encoded is a sha1 encoded value, that part works. Everything workd except
the system call to use Openssl's rsautl to sign the value of $signed.

Paul Fontenot
WFS - CAST Operations
Email: [EMAIL PROTECTED]
Phone: (480) 437-7795

This message may contain confidential and/or privileged information.  If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or
any information herein.  If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message.
Thank you for your cooperation.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to