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