I have this line of code:
X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
It works fine in a console project, but not in my Windows Phone project. In the Windows Phone project, X509store cannot be found.
Why not?
For the .NET compact framework / Windows Phone apps, there is a solution here:
Bouncy Castle got you covered, check their site out. Download the source code, create new WP7 class library and add all files. It should compile. Do not copy tests folder since it depends on NUnit for testing, you won't be needing that.
What about the rest of your application, what do you want with certificates?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.