Inserting Certificate (with privatekey) in Root, LocalMachine certificate store fails in .NET 4

后端 未结 6 533
清酒与你
清酒与你 2020-11-30 08:12

I\'m having problems inserting a new CA certificate with privatekey in the Root certificate store of the localmachine.

This is what happens:

//This          


        
6条回答
  •  误落风尘
    2020-11-30 08:28

    Usually Certificates in Root won't have private key to manage. You should import to My folder if you are associating key in the web request. I have TLS/SSl exception where I have chain of client certificates. If you store all the chain of certificates in My store then I got rid of that exception. Where the problem is with user accounts. Utility to store the certificates uses current user account and the actual application runs on system account.

提交回复
热议问题