PHP Developers Network
http://forums.devnetwork.net/

Sign RSA XML Key
http://forums.devnetwork.net/viewtopic.php?f=34&t=129182
Page 1 of 1

Author:  MR0808 [ Mon Apr 11, 2011 12:24 am ]
Post subject:  Sign RSA XML Key

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

Author:  mdraut [ Fri May 23, 2014 2:31 pm ]
Post subject:  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

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/