Answered by:
How to export a cryptographic key form a pfx certificate file ?

Question
-
I am using Bouncy castle and i am failing to get the public key from a certificate that i have . how can i achieve this , i would appreciate if you could provide any sample code . Thank you.
19karabo91
Monday, April 13, 2015 11:42 AM
Answers
-
Not saying it can work with WinRT, but the way how it read data from pfx should help with reading pfx file in winrt, for instance p/Invoke, perhaps https://social.msdn.microsoft.com/Forums/en-US/2756fd63-6494-4c6c-bbab-e7df3a4bd857/windows-store-apps-with-native-calls?forum=winappswithnativecode
Besides I found something interesting:
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- Edited by Jamles HezModerator Tuesday, April 14, 2015 3:41 AM
- Proposed as answer by Jamles HezModerator Tuesday, April 21, 2015 1:19 PM
- Marked as answer by Jamles HezModerator Wednesday, April 22, 2015 9:06 AM
Tuesday, April 14, 2015 3:37 AMModerator
All replies
-
Hi 19karabo91,
Basically pfx certificate file type is PKCS#12 file type, perhaps this documentation can help you with getting the detail information from the certificate file: PKCS #12 File Types: Portable Protected Keys in .NET
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, April 14, 2015 3:18 AMModerator -
Those classes are not available in winRT , I need something I can use in a windows 8 metro application .
19karabo91
Tuesday, April 14, 2015 3:34 AM -
Not saying it can work with WinRT, but the way how it read data from pfx should help with reading pfx file in winrt, for instance p/Invoke, perhaps https://social.msdn.microsoft.com/Forums/en-US/2756fd63-6494-4c6c-bbab-e7df3a4bd857/windows-store-apps-with-native-calls?forum=winappswithnativecode
Besides I found something interesting:
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- Edited by Jamles HezModerator Tuesday, April 14, 2015 3:41 AM
- Proposed as answer by Jamles HezModerator Tuesday, April 21, 2015 1:19 PM
- Marked as answer by Jamles HezModerator Wednesday, April 22, 2015 9:06 AM
Tuesday, April 14, 2015 3:37 AMModerator -
Thanks I will give it a try .
19karabo91
- Marked as answer by Jamles HezModerator Wednesday, April 22, 2015 9:05 AM
- Unmarked as answer by Jamles HezModerator Wednesday, April 22, 2015 9:05 AM
Tuesday, April 14, 2015 3:43 AM