Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 枚举C中的证书字段#_C#_Security_Cryptography_Certificate - Fatal编程技术网

C# 枚举C中的证书字段#

C# 枚举C中的证书字段#,c#,security,cryptography,certificate,C#,Security,Cryptography,Certificate,如何枚举存储中证书帮助的字段。具体来说,我尝试枚举颁发给登录用户的个人证书字段。请参阅 您还必须使用store.open()才能访问存储 using System.Security.Cryptography.X509Certificates; ... var store = new X509Store(StoreName.My); foreach(var cert in store.Certificates) ...

如何枚举存储中证书帮助的字段。具体来说,我尝试枚举颁发给登录用户的个人证书字段。

请参阅


您还必须使用store.open()才能访问存储

using System.Security.Cryptography.X509Certificates;
...
var store = new X509Store(StoreName.My);
foreach(var cert in store.Certificates)
...