c# - Can't find cert in local store -


I have established x509 proof after these instructions; It comes to the store of trusted root certification authorities, AuthRoot. While trying to find the cert; Open Store: X509 Store Store = New X509 Store (StoreName.Otherthoot) Search through a loop, with an X thumbprint. When this trusted root certificate is installed in the auth store, it works fine

When I try to do this, but install it in a private store, store X509Store Store = new Opening in X509Store (StoreName.My), I can not get the proof.

In the certification, I can see it under Personal-> Certificate.

Is there a necessary configuration in IIS7 for individual certificates? Will someone tell me what I am missing?

This is the storename.Root, not for StoreName.AuthRoot, Trusted Root Certification Authorities.

For personal stores, you must use the X509Store Maker with the StoreLocation parameter to use the local computer, personal store, otherwise you are searching in the current user, personal store.

Try: var store = New X509 store (store name. My, store location. Local MCHIN);

Comments