PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Dec 19, 2018 10:28 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Sign RSA XML Key
PostPosted: Mon Apr 11, 2011 12:24 am 
Offline
Forum Newbie

Joined: Mon Apr 11, 2011 12:09 am
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: Sign RSA XML Key
PostPosted: Fri May 23, 2014 2:31 pm 
Offline
Forum Newbie

Joined: Fri May 23, 2014 2:26 pm
Posts: 1
$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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group