C#遍历数字证书
来源:互联网 发布:矩阵各元素之和叫什么 编辑:程序博客网 时间:2024/05/18 00:19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Security.Cryptography.X509Certificates;
namespace WebApplication3
{
public partial class WebForm4 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//System.Security.Cryptography.X509Certificates.X509Store
//System.Security.Cryptography.X509Certificates.X509Store x = new System.Security.Cryptography.X509Certificates.X509Store();
//string ss = x.Name;
X509Store store = new X509Store(StoreName.My);
store.Open(OpenFlags.ReadWrite);
X509Certificate2 certificate = new X509Certificate2();
X509Certificate2Collection storecollection3 = (X509Certificate2Collection)store.Certificates;
string ss = "";
if (storecollection3.Count == 0)
{
Console.WriteLine("Store contains no certificates.");
}
else
{
foreach (X509Certificate2 x509 in storecollection3)
{
//Console.WriteLine("certificate name: {0}", x509.Subject);
ss = ss + "||" + x509.SerialNumber;
//x509.Issuer 颁发者
}
}
Response.Write(ss);
}
}
}
- C#遍历数字证书
- C#数字证书编程总结
- C#数字证书编程总结
- C#生成pfx用户数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- 数字证书
- SAP ABAP编程 采购订单过账
- genymotion Error Unable to start the Genymotion virtual device.解决方法
- universalimageloader analyze
- 有意思的博客
- IOS7中顶部状态栏的设置
- C#遍历数字证书
- js压缩原理
- Android研究院之应用开发线程池的经典使用(二十九)
- VC嵌套VC导致显示位置偏移的解决方法
- 三种最简单基础的排序 选择排序 冒泡排序 直接插入排序 运用了函数指针数组
- 移植开源QT软件-SameGame
- LeetCode Sort List
- Cannot convert value '0000-00-00 00:00:00' from column 1 to TIMESTAMP
- 英语简单句、并列句、复合句