English 中文(简体)
《网络契约框架》中HttpWebRequest的客户证书3.5
原标题:Specify client certificates in HttpWebRequest in .NET Compact Framework 3.5

此前,我曾试图在CF2.0上使用客户证书(见here),我最终不得不放弃。 I m now on .NET CF 3.5, which has support for the ClientCertificates property on the HttpWebRequest Object。 然而,我可以说明如何以pfx文档对<代码>X509Certificate或X509Certificate2的物体进行即时处理。 关于整个框架,我只能做如下事情:new X509Certificate2(filename, 密码)。 如果我试图用从pfx文档中读出的tes子制造该物体,我就有一个例外的话:“NET CF 3.5不支持pfx文档”。 因此,我如何具体指明一个有私人钥匙的客户证书,以供使用<代码>。

问题回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签