Node's sha1withrsa generated signature is different from php's openssl_sign.

php generation

openssl_sign ($data, $signature, $private_id, OPENSSL_ALGO_SHA1);
$signature = base64_encode ($signature);

)

node uses the node-rsa library
to generate
key= new NodeRSA (privateKey);
sign=key.sign (Buffer.from (data,"utf8"), "base64");

privateKey is the same, but node and php generate different signatures

Mar.10,2021

sign with signer.update (data,'utf8');

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32fd5-2be3f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32fd5-2be3f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?