如何从我的.NET应用程序查找安装在服务器或本地计算机上的SSL证书信息.

问题描述:

朋友们,
我需要一些帮助,
我想从.net应用程序中找到服务器或本地计算机上已安装SSL证书的详细信息.
证书的详细信息包括证书名称和有效期.
在这里,我的机器上没有物理证书文件(例如"ABC.cer"). ("ABC.cer")证书已安装在我的服务器和计算机上.

请帮助....
thnx in advanse,
Shahu.

Hi friends,
I need some help,
I want to find the detailed information of installed SSL Ceritificate on my server or Local machine from my .net application.
Details of certificate includes Name of certificate and Expiry date.
Here i dont have physical certificate file (eg."ABC.cer") on my machine. ("ABC.cer") certificate is installed on my server and machine.

Plz Help..........
thnx in advanse,
Shahu.

您可以在计算机中使用MMC.
1.转到运行",然后键入MMC.EXE(以管理员身份)
2.单击文件->添加删除管理单元
3.选择证书,然后单击添加.
4.完成向导(适用于您的帐户/本地计算机)

现在您可以看到所有已安装的证书.

希望有帮助.
Milind
You can use MMC in your machine.
1. Go to Run and type MMC.EXE (as Admin)
2. Click File->Add Remove Snap-In
3. Select Certificate and Click Add.
4. Finish the wizard (for your account/local computer as applicable)

Now you can see all the certificates installed.

Hope that helps.
Milind