wcf-security

Wcf HTTP and HTTPS on the same host/port

喜欢而已 提交于 2020-01-11 11:17:38
问题 Hello, I know how to create a self hosted wcf for http or https, but not at the same time. I would like a wcf for this 2 urls : https:// 127.0.0.1:13070/ProxySips/ http:// 127.0.0.1:13070/ProxySips/ At the moment I have the configuration for https (with a certificate: makecert + netsh) and it works fine: app.config <system.serviceModel> <bindings> <basicHttpBinding> <binding name="basicHttp" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text">

Installing a x.509 Certificate on IIS in DiscountASP

别来无恙 提交于 2020-01-06 05:35:51
问题 All the tutorials i have seen regarding installation of x.509 Certificate assumes that the server machine is your local machine and you have full access to it. But my app is hosted on DiscountASP, so how can I install the certificate on their machine ? 回答1: You can't because you don't have permissions to install certificate on hosting server. If you want to use HTTPS you must pay your hosting provider for buying and installing certificate for you (or you must have plan which offers SSL or

wcf Error: Incoming message was signed with a token which is different from what used to encrypt body. This was not expected

半世苍凉 提交于 2020-01-04 20:47:58
问题 I am trying to call a third party service with a verisign test x.509 certificate. When I get the response message back, it generates the following error: Incoming message was signed with a token which is different from what used to encrypt body. This was not expected This error was not expected by me because I only supplied the service the one x.509 certificate. What other certificate is it using? Any insight would be appreciated! My custom binding look like: <binding name="NodalCustomBinding

wcf Error: Incoming message was signed with a token which is different from what used to encrypt body. This was not expected

久未见 提交于 2020-01-04 20:45:51
问题 I am trying to call a third party service with a verisign test x.509 certificate. When I get the response message back, it generates the following error: Incoming message was signed with a token which is different from what used to encrypt body. This was not expected This error was not expected by me because I only supplied the service the one x.509 certificate. What other certificate is it using? Any insight would be appreciated! My custom binding look like: <binding name="NodalCustomBinding

wcf Error: Incoming message was signed with a token which is different from what used to encrypt body. This was not expected

别来无恙 提交于 2020-01-04 20:44:52
问题 I am trying to call a third party service with a verisign test x.509 certificate. When I get the response message back, it generates the following error: Incoming message was signed with a token which is different from what used to encrypt body. This was not expected This error was not expected by me because I only supplied the service the one x.509 certificate. What other certificate is it using? Any insight would be appreciated! My custom binding look like: <binding name="NodalCustomBinding

Setting up web services with x509 and multiple clients and how to distinguish clients?

ⅰ亾dé卋堺 提交于 2020-01-04 09:39:49
问题 Following these two links, I was able to implement a simple web service with x509 certification, and an authenticated test client to consume the service. Right now, it looks something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | -------------- How can I extend what I have to accomplish something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | ------------> Test Client 2 | -SaveData() | -------------- | ServiceB.svc

Setting up web services with x509 and multiple clients and how to distinguish clients?

我的梦境 提交于 2020-01-04 09:39:13
问题 Following these two links, I was able to implement a simple web service with x509 certification, and an authenticated test client to consume the service. Right now, it looks something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | -------------- How can I extend what I have to accomplish something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | ------------> Test Client 2 | -SaveData() | -------------- | ServiceB.svc

How do i sign a BinarySecurityToken in soap message

99封情书 提交于 2020-01-03 17:26:27
问题 I have the following C# code to call a web service. System.ServiceModel.Channels.AsymmetricSecurityBindingElement asbe = new AsymmetricSecurityBindingElement(); asbe.MessageSecurityVersion = MessageSecurityVersion.WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; asbe.InitiatorTokenParameters = new System.ServiceModel.Security.Tokens.X509SecurityTokenParameters(); asbe.RecipientTokenParameters = new System.ServiceModel.Security.Tokens

How do i sign a BinarySecurityToken in soap message

自闭症网瘾萝莉.ら 提交于 2020-01-03 17:26:16
问题 I have the following C# code to call a web service. System.ServiceModel.Channels.AsymmetricSecurityBindingElement asbe = new AsymmetricSecurityBindingElement(); asbe.MessageSecurityVersion = MessageSecurityVersion.WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; asbe.InitiatorTokenParameters = new System.ServiceModel.Security.Tokens.X509SecurityTokenParameters(); asbe.RecipientTokenParameters = new System.ServiceModel.Security.Tokens

HttpContext is null in WCF service running in ASP.NET Compatibility Mode

↘锁芯ラ 提交于 2020-01-02 07:14:31
问题 I have a asp.net website that is hosting a WCF service. This service is then accessed from a desktop app. In my service the HttpContext is always null during the execution of the Validate method in my implementation of the UserNamePasswordValidator class. I'm using Username as the client credential type. I need access to the http context in order to get the Url the service was accessed from in order to validate the username and password correctly as the site can be accessed using different