RE: Showing the private key stored in a pfx file



Hi Bob,

Thanks for your post!

Based on my knowledge, the container name will be different every time you
import the PFX, but the private key should be the same each time.

I recommend you to use certutil.exe to dump the raw private key:
certutil -p "geheim" -v -privatekey e:\Prototype\Test\Release2\key.pfx
The output won't be as nice as the RSA C# class allows, in that the key is
merely dumped as a hex blob.

If the above command shows the same private key content each time, then
there may be an issue with the C# classes you are using, or the code that
calls them.

I look forward to your further test result. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: CERT_STORE_PROV_PKCS12
    ... access the private keys in a store without ... corresponding private key. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.platformsdk.security)
  • RE: how to specify private key to generate signature
    ... can get the private key either from the certificate(if private key is not ... retrieve a DSA Provider from the certificate's PrivateKey property or use ... CspParametersto create a DSA ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • RE: WSE600: Unable to unwrap a symmetric key using the private key of
    ... As for the WSE private key accessing issue, based on the error message, it ... does be likely that the user account doesn't have sufficient permission to ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • RE: HttpWebRequest and PAssowrd Protected Private Keys
    ... hoping for a solution that could access the private key perhaps through the ... and will need to attach client certificate for authentication. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Use a private key file generated from Linux for digital signature in .NET
    ... you might want to use certificate support ... >> private key and SSL certificate altogether. ... I will get a new SSL certificate using the keys ...
    (microsoft.public.dotnet.security)

Quantcast