Trying to encrypt data using private key of a ssl - anyhelp i didit long time back in dotnet 1.1 so things have changed i guess :)
The idea is encrypt data and call some service (me and the service provider will both have private key file) - i want load the pfx from file to avoid accessing cert store for each call.
kumar1234
0 Points
1 Post
Trying to encrypt data using private key of a ssl
Jan 22, 2013 06:36 PM|LINK
Resolved using
var signatureCertificate = GetCertificate();
var rsaProvider = (RSACryptoServiceProvider)signatureCertificate.PrivateKey;
return Encoding.ASCII.GetString(rsaProvider.Decrypt(Convert.FromBase64String(cipherText), false));
Trying to encrypt data using private key of a ssl - anyhelp i didit long time back in dotnet 1.1 so things have changed i guess :)
The idea is encrypt data and call some service (me and the service provider will both have private key file) - i want load the pfx from file to avoid accessing cert store for each call.
BrockAllen
All-Star
28084 Points
4997 Posts
MVP
Re: Trying to encrypt data using private key of a ssl
Jan 24, 2013 01:20 AM|LINK
What are you really trying to do? Does this help you do what you want?
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
Chen Yu - MS...
All-Star
21829 Points
2513 Posts
Microsoft
Re: Trying to encrypt data using private key of a ssl
Jan 29, 2013 04:39 AM|LINK
Hi,
Do you means you want to use private key to encrypt data ? If so, you could reference on below article, it will help you.
Please check: http://www.codeproject.com/Articles/38739/RSA-Private-Key-Encryption
Best Regards,
Feedback to us
Develop and promote your apps in Windows Store