Using PHP 5.2.4 and the OpenSSL 0.9.8g module, I am trying to create a signed digest
openssl_sign($stuff, $signeddigest, $key, 'sha256WithRSAEncryption');
Alas, $ signeddigest returns empty and I get no errors.
If you do not specify the 'sha256WithRSAEncryption' algorithm, the signed digest is returned using the default algorithm.
The same code works fine on PHP 5.3.10 and OpenSSL 1.0.0g. Is the 'sha256WithRSAEncryption' algorithm supported in OpenSSL 0.9.8g?
Niels castle
source share