Hi,
We currently have an RSA key in XML format, and am trying to sign it with PHP and phpseclib, however we are struggling to do it. We have managed to decrypt and encrypt it, but can not find a way to sign it. They key has been generated with .NET.
Cheers
Sign RSA XML Key
Moderator: General Moderators
Re: Sign RSA XML Key
$xml->loadXML($privatekey2); //this you must have already done
$d = new Math_BigInteger(base64_decode($xml->getElementsByTagName('D')->item(0)->nodeValue), 256); // this you have alredy done
$rsa->exponent = $d; // but this must be missing from your code
$d = new Math_BigInteger(base64_decode($xml->getElementsByTagName('D')->item(0)->nodeValue), 256); // this you have alredy done
$rsa->exponent = $d; // but this must be missing from your code