资源简介


资源截图

代码片段和文件信息

using System;
using System.Security.Cryptography.X509Certificates;

namespace WeChatRedPacketSample
{
    public class CertificateStoreFinder : ICertificateFinder
    {
        string m_SubjectDistinguishedName;

        public CertificateStoreFinder(string subjectDistinguishedName)
        {
            if (subjectDistinguishedName == null)
                throw new ArgumentNullException(“subjectDistinguishedName“);

            m_SubjectDistinguishedName = subjectDistinguishedName;
        }

        public X509Certificate2 Find()
        {
            var store = new X509Store(StoreName.My StoreLocation.CurrentUser);
            store.Open(OpenFlags.ReadOnly);
            //var cer = new X509Certificate(@“D:\cert\apiclient_cert.p12“ “10011111“ X509KeyStorageFlags.MachineKeySet);
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     185544  2015-04-23 10:37  WeChatRedPacketSample-vs2010\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll

     文件     192626  2015-04-23 10:37  WeChatRedPacketSample-vs2010\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.xml

     文件     151240  2015-04-23 10:37  WeChatRedPacketSample-vs2010\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\portable-wp8+netcore45+net45+wp81+wpa81\System.Net.Http.Formatting.dll

     文件     279955  2015-04-23 10:37  WeChatRedPacketSample-vs2010\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\portable-wp8+netcore45+net45+wp81+wpa81\System.Net.Http.Formatting.xml

     文件     188921  2015-04-23 10:37  WeChatRedPacketSample-vs2010\packages\Microsoft.AspNet.WebApi.Client.5.2.3\Microsoft.AspNet.WebApi.Client.5.2.3.nupkg

     文件       1748  2015-04-23 10:37  WeChatRedPacketSample-vs2010\packages\Microsoft.AspNet.WebApi.Client.5.2.3\Microsoft.AspNet.WebApi.Client.5.2.3.nuspec

     文件     493056  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net20\Newtonsoft.Json.dll

     文件     516034  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net20\Newtonsoft.Json.xml

     文件     430080  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net35\Newtonsoft.Json.dll

     文件     459802  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net35\Newtonsoft.Json.xml

     文件     493056  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net40\Newtonsoft.Json.dll

     文件     478726  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net40\Newtonsoft.Json.xml

     文件     502272  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll

     文件     478726  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.xml

     文件     446976  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\netcore45\Newtonsoft.Json.dll

     文件     448530  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\netcore45\Newtonsoft.Json.xml

     文件     387072  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll

     文件     425586  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.xml

     文件     444928  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll

     文件     448549  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.xml

     文件    1513616  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\Newtonsoft.Json.6.0.4.nupkg

     文件        723  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\Newtonsoft.Json.6.0.4.nuspec

     文件       3229  2015-04-23 10:38  WeChatRedPacketSample-vs2010\packages\Newtonsoft.Json.6.0.4\tools\install.ps1

     文件        184  2015-04-23 13:36  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\App.config

     文件       2049  2015-04-23 14:02  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\bin\Debug\Log\Error20150423.log

     文件       1311  2015-04-24 09:28  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\bin\Debug\Log\Error20150424.log

     文件       1311  2015-04-25 11:41  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\bin\Debug\Log\Error20150425.log

     文件       2527  2015-04-23 14:02  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\bin\Debug\Log\Trace20150423.log

     文件      65376  2010-03-18 19:31  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\bin\Debug\Microsoft.CSharp.dll

     文件      30072  2010-03-18 19:31  WeChatRedPacketSample-vs2010\WeChatRedPacketSample\bin\Debug\System.Data.DataSetExtensions.dll

............此处省略74个文件信息

评论

共有 条评论