Problems with X509Store Certificates.Find FindByThumbprint

后端 未结 14 2152
醉话见心
醉话见心 2020-12-04 20:56

I\'m having a problem when I use the method X509Store.Certificates.Find

public static X509Certificate2 FromStore(StoreName storeName, 
                  


        
14条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 21:30

    This code should work.

    I suppose you have copied this thumbprint from the certificate management console. And that copied value contains unicode non-readable symbol which is invisible in Visual Studio. Try to delete the first invisible symbol and if this is what I think of, this should work.

提交回复
热议问题