.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

JBOSS WS WCF Client - Could not establish secure channel for SSL/TLS with authority 'xxx.xxx.xxx.xx

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :WCF

Hi all,

Ive been asking a lot of questions the last weeks but nothing came up.

I have a webservice developed in Java and hosted in JBOSS.

The current scenario is that the service should be running in a two way certificate, means that the server has a certificate and the client has one too.

I have already installed the two certs in the console (mmc), i see the certs so that should be ok.

After several test i came to this situation. The certs are ok, in debug mode i see that .NET finds those.

The service is hosted in a pc that is in our intranet.


Here is my code.


ServiceRef.ServiceClient servicioJboss = new ServiceRef.ServiceClient();

ServiceRef.methodResponse resp = new ServiceRef.methodResponse();

ServiceRef.method metodo = new ServiceRef.method();

metodo.arg0 = 1;

metodo.arg1 = 1402251;

metodo.arg0Specified = true;

metodo.arg1Specified = true;



View Complete Post

More Related Resource Links

"Could not establish secure channel" when chaining services with certificates


I am currently developing two web services which use mutual authentication with X.509 certificates. This works perfectly over one hop, but if I try to chain over a second hop I get this error:


"Could not establish secure channel for SSL/TLS with authority 'machine.mydomain.com'."

I have my client and both services all executing on the same machine in a test environment. I have IIS 7.5 installed, created a new website and apppool, and published both services as applications under the same site. Both services have https bindings set up in IIS using the same certificate. I have both the client certificate and the server certificate installed on the machine, and the CA is installed in the Trusted Root CA store. These are all installed under LOCAL_MACHINE.

From my client, I am able to call ServiceA, and everything works perfectly. In ServiceA, I have several unit test cases which call ServiceB - these also work with no problem. But, if I run Client, call ServiceA, and then ServiceA calls ServiceB, authentication between the two services fails. I have tried copying binding configuration from my unit test app.config to ServiceA's web.config, but that doesn't seem to make any difference.


I can post the configuration data from web.config if anyone wants to see it, but given the fact that calls from Client => S

Secure It: WS-Security and Remoting Channel Sinks Give Message-Level Security to Your SOAP Packets


As more organizations adopt XML-based Web Services, the need for message-level security has become evident. WS-Security, now supported in the Microsoft .NET Framework, addresses this need. Using the WS-Security framework, developers can implement channel sinks to intercept Remoting messages as they pass through the .NET Remoting infrastructure. The sink can read the message, change it, and pass it along. During this process, the message can be signed for added security. This article explains how to implement a Remoting channel sink that will modify the Remoting message by including a UserName token in the header, then sign the body using the token.

Neeraj Srivastava

MSDN Magazine November 2003

.NET Remoting: Secure Your .NET Remoting Traffic by Writing an Asymmetric Encryption Channel Sink


As .NET Remoting gains popularity in the enterprise space, it must meet business demands for trustworthy computing. Remoting traffic can be secured when objects are hosted in IIS, but when they aren't hosted in IIS, custom security solutions can be developed to secure them. This article provides an in-depth look at writing channel sinks for .NET. It also details the flow of data through custom channel sinks and explains the kinds of manipulations that can be performed on that data.

Stephen Toub

MSDN Magazine June 2003

DHTML and .NET: Host Secure, Lightweight Client-Side Controls in Microsoft Internet Explorer


In the past, Web developers often used ActiveX controls if they wanted customized client-side functionality incorporated into their Web applications. Now, they can build objects supported by the Microsoft .NET Framework which are more compact, lightweight, secure, and seamlessly integrated. By hosting .NET Windows Forms controls in Internet Explorer, developers can realize many of their client-side Web development goals. This article adapts ActiveX concepts for use with Windows Forms, and builds a multifile upload application that demonstrates these techniques.

Jay Allen

MSDN Magazine January 2002

The SMTP server requires a secure connection or the client was not authenticated.........

i am using asp.net & have a emailing modulewhen i use gmail host i amable 2 send the mail but when i am using yahoo host i get  error msgthe yahoo id & password are right  but still getting the below msg ---------------------------Windows Internet Explorer---------------------------  ' The SMTP server requires a secure connection or the client was not authenticated. Authentication Required. '   ---------------------------OK   ---------------------------

Need suggestion's and guidelines for designing and creating WCF client channel pool

  What factor's should be considered for creating a WCF client channel pool? 1)Whether it is advisable to create a pool of pre-opened channel's?or create a new channel as an when needed?which one is expensive operation? 2)what should be the pool size? 3)how pool will support if concurrent request's are coming which use different binding's? 4)what should be channel lifetime? 5)If all the connection's in the pool are busy,whether we should wait till the free channel's are available in the pool or create new one's which is expensive?which one is better? if anybody is able to provide some usefull links it will be helpfull.

Unable to establish a secure connnction with server - ASP.NET AD Authentication.

Situation:IIS 6 installed on Vista (Virtual PC) not member of domain, Visual studio 2008 based website. Active Directory Membership configured in web.config.Trust level set to Full. Using Login control to authenticate.<membership defaultProvider="DomainLoginMembershipProvider"> <providers> <add name="DomainLoginMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString" connectionUsername="test.bit.com\administrator" connectionPassword="myadminpassword"/> </providers><membership>Connection string is configured as following<connectionStrings> <add name="ADConnectionString" connectionString="LDAP://test.bit.com/CN=Users,DC=test,DC=bit,DC=com"/></connectionStringsEvery time after login it will state "Unable to establish a secure connnction with server"Thanks in advance for your time and support!

The SMTP server requires a secure connection or the client was not authenticated. The server respons

  here everything with images     http://img704.imageshack.us/img704/5520/problem1w.png http://img704.imageshack.us/img704/2116/problem2j.png   http://img530.imageshack.us/img530/5445/problem3.png   http://img829.imageshack.us/img829/6345/problem4.png            

PollingDuplexHttpBinding Client Channel Faults unexpectedly after few seconds

Hello, i have a Silverlight 4 application which communicates using Http Polling Duplex to an IIS 7, .NET 4 WCF Service (actually two of them, in the same app). I am obviously taking advantage of the callback features provided by this type of solution. Setup has been performed by following these documents: Service setup: http://msdn.microsoft.com/en-us/library/cc645027%28v=VS.95%29.aspx Silverlight setup: http://msdn.microsoft.com/en-us/library/ee844557%28v=VS.95%29.aspx All has been working fine until yesterday, when i went on upgrading the Silverlight Tools for VS2010 to version 10.0.30319.352 which has also upgraded my Silverlight runtime to 4.0.50826.0 . Running my app now, after few seconds from the first call to the services, the client inner-channel faulted event fires on both proxies without an apparent motivation (exception, user interaction, etc.). What i have been able to notice, by analyzing connections with Fiddler, is that as soon as the open connection to the service which holds a callback channel receives a response, the client-side proxies fail. I'll try to show how the HTTP connections appear to behave: Call to the first service, callback channel retreived, immediate response 200 OK, no content Call to the second service, business logic performed, immediate response 200 OK, no content Call to the first service, no response for a few seconds, response 200 OK

SQL Error with Login: Login failed for user 'NT AUTHORITY\SYSTEM'. [CLIENT: ]

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-m

get error The SMTP server requires a secure connection or the client was not authenticated. The serv

 Hi,I was able to send mail with no trouble before few days.Then due to some reason, i Formatted pc &  re-installed visual studio & IIS Now when i try to send mail, i get this error.The SMTP server requires a secure connection or the client was not authenticated.In my web.config file i write<mailSettings>      <smtp from="myemail@gmail.com">        <network host="smtp.gmail.com" port="587" userName="myemail" password="xxxx" defaultCredentials="false"/>      </smtp>    </mailSettings>  </system.net>  And on SEND MAIL Button click event I write ( CODE BEHIND)   Dim smtp As New System.Net.Mail.SmtpClient()  Dim smail As New System.Net.Mail.MailMessage smail.To.Add(New System.Net.Mail.MailAddress("contactperson@yahoo.co.in"))        smail.From = New System.Net.Mail.MailAddress("myemail@gmail.com")        smail.Subject = "HELLOO ..HOW R U?"        smail.IsBodyHtml = "true"        smail.Body = "" & txtmail.Text        s

Could not create SSL/TLS secure channel

I have a web service which calls into another web service. My web service allows anonymous access and the application pool runs under the "Local System" identity. I get the following error when my web service calls another web service which requires a cert for SSL:Could not create SSL/TLS secure channelI enabled a diagnostic trace, the end of which says:System.Net Information: 0 : [4168] SecureChannel#16871348 - Certificate is of type X509Certificate2 and contains the private key.System.Net Information: 0 : [4168] AcquireCredentialsHandle(package = Microsoft Unified Security Protocol Provider, intent  = Outbound, scc     = System.Net.SecureCredential)System.Net Error: 0 : [4168] AcquireCredentialsHandle() failed with error 0X8009030D.System.Net Information: 0 : [4168] AcquireCredentialsHandle(package = Microsoft Unified Security Protocol Provider, intent  = Outbound, scc     = System.Net.SecureCredential)System.Net Error: 0 : [4168] AcquireCredentialsHandle() failed with error 0X8009030D.System.Net.Sockets Verbose: 0 : [2928] Socket#13716631::Dispose()System.Net Error: 0 : [2928] Exception in the HttpWebRequest#19726116:: - The request was aborted: Could not create SSL/TLS secure channel.System.Net Error: 0 : [2928] Exception in the HttpWebRequest#19726116::EndGetResponse - The request was aborted: Could not create SSL/TLS secur

Secure channel cannot be opened because security negotiation with the remote endpoint has failed

Please help me to pinpoint what's wrong with the configurations. CoreClient client = new CoreClient(); client.ClientCredentials.UserName.UserName = "test"; client.ClientCredentials.UserName.Password = "test"; string msg = client.SayHello(); //==== ERROR Happens here Error message: Secure channel cannot be opened because security negotiation with the remote endpoint has failed. This may be due to absent or incorrectly specified EndpointIdentity in the EndpointAddress used to create the channel. Please verify the EndpointIdentity specified or implied by the EndpointAddress correctly identifies the remote endpoint. Configurations: Host: <behaviors> <serviceBehaviors> <behavior name="DefaultBehavior"> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> <serviceCredentials> <serviceCertificate findValue="MyServerCert" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My"/> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Promotion.Services.UsernameValidator, LibraryIIS" /> </serviceCredentials> </behavior>

How to configure secure communication between web client in DMZ and WCF-service in domain



I have a question regarding security in this scenario:

In the DMZ I have an server hosting my Web application. I'm using HTTPS between the user/browser and my web application (using certificate).

My web application is supposed to communicate with a service behind the firewall (inside the domain) hosted in IIS 7.
I'm using wsHttpBinding between my web application and the WCF-service.If I have this security configuration everything works fine:

<binding name="WSHttpBinding_ServiceLong" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:20:30" <br/>

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure


I've gone through lot of articles and not one solution worked for me:

I'm having IIS 7 on Windows 2k8 with SSRS 2008.

How SSL is configured: Its configured to access SSL over existing web-site. final url looks like https://url/reports. When I enter this URL I get the error message.

But, if I connect to same site using non SSL website from my local machine, it works fine. For example, if i use VS 2008 web server and connect to it, it works and shows me report, but as soon as I deploy it on webserver having SSL enabled, it just throws this message.


Somebody please help me wid this one

Not so important

JBOSS webservice WCF client interop issues



i'm working to integrate those technologies but i'm having some serious issues to do so.

Ive try everything to make this work but can't figure it out how to make it work.

I already started a post http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/8ddeee00-8d81-4071-a934-2be9bb2669a2 about some problem it came out.

The thing is that i already search all over google and found nothing that can really help me.

I would need some advice from someone who knows JBOSS too, the solutions i found apply to IIS mostly ... but is not my case.

Any help would be appreciated.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend