Page 1 of 1
RSA signature verification
Posted: Tue Oct 06, 2009 6:22 am
by torpeteo
I've created the private and public keys via .NET, but have a php client that will have to verify the signature with the public key. Is it possible for them to use the public key that was generated via .NET, in their php code?
considering the public key looks something like this:
Code: Select all
- <RSAKeyValue>
<Modulus><#####.......#####></Modulus>
<Exponent><####></Exponent>
</RSAKeyValue>
Re: RSA signature verification
Posted: Fri Oct 09, 2009 5:01 am
by kaisellgren
torpeteo wrote:I've created the private and public keys via .NET, but have a php client that will have to verify the signature with the public key.
What is this for? You can encrypt with the private key and send the public key to your PHP application, but I would like to know what you are doing this for.
Re: RSA signature verification
Posted: Sun Oct 11, 2009 10:06 am
by torpeteo
I'm signing a random string sent from the client with the private key and returning the signature. Then the client is verifying the signature with the public key.
I have no problem doing this in .NET. I'm just not very experienced with PHP and am not sure if I can use this type of public key in PHP.
Re: RSA signature verification
Posted: Mon Oct 12, 2009 6:28 am
by kaisellgren