MR0808 Posted April 11, 2011 Share Posted April 11, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/233333-sign-rsa-xml-key/ Share on other sites More sharing options...
requinix Posted April 11, 2011 Share Posted April 11, 2011 An RSA key is binary data. There may be XML to contain the value, it perhaps encoded (like with base 64), but ultimately you need to get to the raw data. What's the XML (don't forget to remove the key data) and what's the code? And what does "struggling" mean? Quote Link to comment https://forums.phpfreaks.com/topic/233333-sign-rsa-xml-key/#findComment-1199933 Share on other sites More sharing options...
MR0808 Posted April 11, 2011 Author Share Posted April 11, 2011 It's all good, a few beers later and the result came to me! Thanks for the reply. Quote Link to comment https://forums.phpfreaks.com/topic/233333-sign-rsa-xml-key/#findComment-1199955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.