在IIS7.5上运行Message Security with UserName的WCF Service
2011-04-14 15:35
441 查看
1. Run command prompt as administrator, and run the following command
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y
This step is used to make IIS can run WCF service.
2. Make certificate for LocalMachine
Use VS2008’s command prompt and run as administrator.
makecert -r -pe -n "CN=FeedServiceServer" -ss My -sr LocalMachine -sky exchange
This step is for creating server certificate.
3. Export server certificate as .pfx or .cer and import it into Trusted Root Certification Authorities's Certificates list
This step is for creating client certificate. You may get this step done easily by MMC.
4. Grant certificate access rights for service.
You could download certificate configuration tool from here. And run the following command.
C:\Program Files\Windows Resource Kits\Tools>winhttpcertcfg -g -c LOCAL_MACHINE\My -s FeedServiceServer -a FeedService
FeedService is the application pool name which contains the FeedService web application.
Note: make sure application pool’s .net framework version is 2.0. (not sure why v4.0 does not work, anyone could tell me?)
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y
This step is used to make IIS can run WCF service.
2. Make certificate for LocalMachine
Use VS2008’s command prompt and run as administrator.
makecert -r -pe -n "CN=FeedServiceServer" -ss My -sr LocalMachine -sky exchange
This step is for creating server certificate.
3. Export server certificate as .pfx or .cer and import it into Trusted Root Certification Authorities's Certificates list
This step is for creating client certificate. You may get this step done easily by MMC.
4. Grant certificate access rights for service.
You could download certificate configuration tool from here. And run the following command.
C:\Program Files\Windows Resource Kits\Tools>winhttpcertcfg -g -c LOCAL_MACHINE\My -s FeedServiceServer -a FeedService
FeedService is the application pool name which contains the FeedService web application.
Note: make sure application pool’s .net framework version is 2.0. (not sure why v4.0 does not work, anyone could tell me?)
相关文章推荐
- the server has disconnected with an error. server message reads: a protocol error occurred.chang of username or service not allowedroot, (root,ssh-con
- Exception UserExistException is not compatible with throws clause in UserService.findUserByName(Stri
- Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed
- FAQ(29):Cannot find class [com.smbms.pojo.UserServiceImpl] for bean with name 'userService' defined
- 小技巧:在 Windows 7 的 IIS 7.5 中 运行 WCF 服务 404 错误
- Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed
- 小技巧:在 Windows 7 的 IIS 7.5 中 运行 WCF 服务 404 错误
- WCF BasicHttpBing With UserName Authentication
- 小技巧:在 Windows 7 的 IIS 7.5 中 运行 WCF 服务 404 错误
- WCF - Message Security with Mutual Certificates
- spring+springmvc+myibatic中出现了Error creating bean with name 'userService':
- LR场景运行提示:This Vuser already started a transaction with the same name, and has not yet processed the
- WCF分布式安全开发实践(10):消息安全模式之自定义用户名密码:Message_UserNamePassword_WSHttpBinding
- 小技巧:在 Windows 7 的 IIS 7.5 中 运行 WCF 服务 404 错误
- Error creating bean with name 'userService' defined in class path resource [beans.xml]: Unsatisfied dependency expressed through
- Error creating bean with name 'userService': Injection of resource methods failed; nested exception is org.springframework.beans
- Web Service security UserNameToken 使用
- Error creating bean with name 'userService' defined in file [D:\eclipse-jee-neon-3-win32-x86_64\jav
- dubbo注入service服务,运行加载报错:Error creating bean with name........
- andriodStudio真机运行 installation failes with message INSTALL_CANCELED_BY_USER 错误