English 中文(简体)
WCF 仅获得服务(无客户身份证明)的认证
原标题:WCF Certificate Authentication with Service Only (No Client Cert)

目前,我正在使用一个配有视窗认证的净电压(C#中的表格)。 我将离开域名认证(将赢得新客户的门槛值提升到域上),并期待着建立一个有用户名/用户认证的证书安全。 从我迄今所读到的那段话中,我不一定需要客户证明(这是好的;我没有能够在每个客户上安装服务证明书)。 我的思想是,在获得一个有信誉的加盟证书的安全网站方面,我行得通;它承认它值得信任,不问任何问题或给予任何利弊,它只是接受证书!

到目前为止,我已经建立了服务证明(我们有一个来自GoDaddy的野心ert),但是,我可以说明我为了不要求客户证明而必须做些什么改动。

Service app.config:

<serviceBehaviors>
   <behavior name="">
     <serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
     <serviceDebug includeExceptionDetailInFaults="false" />
     <serviceCredentials>
       <clientCertificate>
         <authentication certificateValidationMode="None" revocationMode="NoCheck" />
       </clientCertificate>
       <serviceCertificate findValue="*.xxxxxx.com"
                           storeLocation="LocalMachine"
                           storeName="TrustedPublisher"
                           x509FindType="FindBySubjectName" />
     </serviceCredentials>
   </behavior>
 </serviceBehaviors>

客户评估:

      <security mode="Transport">
        <transport clientCredentialType="Certificate" protectionLevel="EncryptAndSign" />
        <message clientCredentialType="UserName" />
      </security>

我知道,我不得不为用户名部分设立一个惯例验证人,但我当时只是一个步骤。 感谢并让我知道,你们是否需要进一步的细节。

最佳回答

客户变动 无。 服务器会议也这样做。

问题回答

暂无回答




相关问题
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. ...

热门标签