openssl_sign

From: Date: Mon, 01 Dec 2003 10:34:11 +0000
Subject: openssl_sign
Groups: php.general 
Request: Send a blank email to php-general+get-171449@lists.php.net to get a copy of this message
Hi, I try to generate the same signature than openssl_sign from the command line. I use the following command: openssl dgst -sha1 data_file | sed "s:.*\=\ ::" | openssl rsautl -inkey \ private_rsa.key -sign -out sign_file but the signatures are different :/ If I understand the PHP doku right, a SHA1 hash over the data is generated followed by signing this hash. What's going wrong here? mfg Dietrich Heise -- Open WebMail Project (http://openwebmail.org)

« previous php.general (#171449) next »