wcf研究小结
来源:互联网 发布:外国文献翻译软件 编辑:程序博客网 时间:2024/05/16 07:58
1、生成证书(目前为可用语句,具体参数还需要细细研究,这里面很深啊~)
makecert -r -pe -n CN="MyWebServer" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localmachine -sky exchange
-sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12
2、config配置
<endpoint address ="" binding="wsHttpBinding" contract="WcfService.IService1" bindingConfiguration="EndpointBinding">
<!--
部署时,应删除或替换下列标识元素,以反映
在其下运行部署服务的标识。删除之后,WCF 将
自动推导相应标识。
-->
<identity>
<dns value="MyWebServer"/>
</identity>
</endpoint>
与
<bindings>
<wsHttpBinding>
<binding name="EndpointBinding">
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="Windows"/>
<message clientCredentialType="UserName"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<serviceCredentials>
<serviceCertificate findValue="MyWebServer"
x509FindType="FindBySubjectName"
storeLocation="LocalMachine"
storeName="My"/>
<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="WcfService.Models.CustomUserPassword,WcfService" />
</serviceCredentials>
同颜色的需要一致才能触发用户验证
详细情况还不清晰,先记录下
- wcf研究小结
- WCF 小结
- wcf研究1
- wcf简单使用小结
- WCF 学习小结
- WCF配置小结
- 小结今天 Silverlight + WCF 收获
- Silverlight WCF 初尝小结
- Silverlight WCF 初尝小结
- 关于WCF的一点小结
- Wcf配置TCP协议小结
- [项目基础]WCF初识小结
- Ajax研究小结
- Ajax研究小结
- Ajax研究小结
- Ajax研究小结
- Ajax研究小结
- CAD研究小结
- 网络安全技术连载(7)网络安全技术实例分析
- Passbible.com IT认证考试网
- 设计高效sql一般经验谈 (转)
- SVN 初步
- figlet 一个生成ASCII艺术之的玩意儿
- wcf研究小结
- sscanf
- MS SQL系统存储过程览要
- Linux 操作系统日志管理全攻略(2)
- 指针讲解
- Apache ReWriteRule参数
- 程序员成长 必进 之技术网站
- [转帖]Photoshop教程:偏色照片的修复过程
- org.objectweb.asm.ClassVisitor.visit