locked
Could not establish trust relationship for the SSL/TLS secure channel with authority ' in SharePoint2010 RRS feed

  • Question

  • am trying to communicate to a WCF webservice using a sharepoint object model for a subscription kind of web part.

    i get below error?

    System.ServiceModel.Security.SecurityNegotiationException was caught

      Message=Could not establish trust relationship for the SSL/TLS secure channel with authority 'webservice.exacttarget.com'.

      Source=mscorlib

      StackTrace:

        Server stack trace: 

           at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)

           at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

           at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

           at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)

           at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

           at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

           at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

           at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

        Exception rethrown at [0]: 

           at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

           at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

           at ExactTargetClient.Soap.Create(CreateRequest request)

           at ExactTargetClient.SoapClient.ExactTargetClient.Soap.Create(CreateRequest request)

           at ExactTargetClient.SoapClient.Create(CreateOptions Options, APIObject[] Objects, String& RequestID, String& OverallStatus)

           at VisualWebParts.SubscriptionWebPart.SubscriptionWebPartUserControl.Button1_Click(Object sender, EventArgs e)

      InnerException: System.Net.WebException

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

           Source=System

           StackTrace:

                at System.Net.HttpWebRequest.GetResponse()

                at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

           InnerException: System.Security.Authentication.AuthenticationException

                Message=The remote certificate is invalid according to the validation procedure.

                Source=System

                StackTrace:

                     at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

                     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)

                     at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)

                     at System.Threading.ExecutionContext.runTryCode(Object userData)

                     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

                     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

                     at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)

                     at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)

                     at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)

                     at System.Net.ConnectStream.WriteHeaders(Boolean async)

                InnerException: 


    do we need to add certificate in Central Admin?

    Thanks in Advance


    Share Knowledge and Spread Love!
    Tuesday, February 15, 2011 3:11 AM

Answers

  • Hi,

     

    It seems you wish to consume a WCF webservice through SharePoint SSL/TLS secure channel:

    Please see the following blog:

    http://blog.mattsampson.net/index.php/2011/01/06/calling-a-webservice-over-ssl-in-sharepoint-ssl?blog=1

    As you mentioned, you’d better try downloading and adding the certificate on the server first.

     

    Best Regards,

    Aaron

    • Marked as answer by Wayne Fan Thursday, February 17, 2011 1:12 AM
    Wednesday, February 16, 2011 5:14 AM
  • Yeah, uploading SSL certificate solved my issue.

    Please check below link for more details

     

    http://blog.mattsampson.net/index.php/2011/01/06/calling-a-webservice-over-ssl-in-sharepoint-ssl?blog=1

     

     


    Share Knowledge and Spread Love!
    • Marked as answer by Wayne Fan Thursday, February 17, 2011 1:12 AM
    Wednesday, February 16, 2011 2:58 PM

All replies

  • Hi,

     

    It seems you wish to consume a WCF webservice through SharePoint SSL/TLS secure channel:

    Please see the following blog:

    http://blog.mattsampson.net/index.php/2011/01/06/calling-a-webservice-over-ssl-in-sharepoint-ssl?blog=1

    As you mentioned, you’d better try downloading and adding the certificate on the server first.

     

    Best Regards,

    Aaron

    • Marked as answer by Wayne Fan Thursday, February 17, 2011 1:12 AM
    Wednesday, February 16, 2011 5:14 AM
  • Yeah, uploading SSL certificate solved my issue.

    Please check below link for more details

     

    http://blog.mattsampson.net/index.php/2011/01/06/calling-a-webservice-over-ssl-in-sharepoint-ssl?blog=1

     

     


    Share Knowledge and Spread Love!
    • Marked as answer by Wayne Fan Thursday, February 17, 2011 1:12 AM
    Wednesday, February 16, 2011 2:58 PM