How to retrieve all certificates in your X509Store

后端 未结 4 684
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 10:07

I am using the following code to retrieve all certificates in my PC from an asp.net webapp. The certificates collection is empty, and I can\'t understand why.

I tri

4条回答
  •  难免孤独
    2021-01-01 10:40

    Look in your certificate store(mmc/add/certificate snap-in/my user account/Certificates - Current User/Personal/Certificates) to see the subject name to make sure "CN=mypc.domainname" is whats actually on the cert.

    "CN=mypc.domainname"
    

    vs

    "CN = mypc.domainname"
    

    ...etc

提交回复
热议问题