Windows 7 Import PKCS#12 works, export seems to succeed, but no private key is present in pfx


New Member
When I import this PKCS12 file in Windows XP with the private key marked exportable, and later export this certificate with the private key. It works perfect.
With Windows 7 it also seems to work perfect, but when I analyse the generated pfx-file the private key is not exported.
I found out it works when import with extended properties, but I cannot do this programming in Visual Studio 2008.
- Why?
- What can I do programmatically to get this working?
There is no password on the P12.




This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.