locked
SiteMailbox Error"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel" RRS feed

  • Question

  • Hi guys,

      I have trying to integrate SharePoint and Exchange. With the reference of this link.

    http://www.scinaptic.com/support/0109.html

    I got the site mailbox configured. But when i tried establish the trust and service permission on exchange i got error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel". I tried it again and again and got another error.

    You have attemped the max limit. I tried to remove that partner application with the command. "Removepartnerapplication HRAPP". But it doesn't work. So i tried by deleting the service attempts in AD. After that i getting lot's of warning message's.

    How to Establish trust relationship for SSL/TLS secure Channel ?

    How to set the number attempts & how to clear the warning ?

    Thursday, January 30, 2014 11:58 AM

Answers

  • There are other steps if you are not running in a fully SSL enabled environment. Including:

    Setup the exchange trust:

    New-SPTrustedSecurityTokenIssuer -Name Exchange -MetadataEndPoint https://svr-exchange.contoso.com/autodiscover/metadata/json/1

    $exchange=Get-SPTrustedSecurityTokenIssuer –Identity Exchange

    $app=Get-SPAppPrincipal -Site http://teams.contoso.com -NameIdentifier $exchange.NameId

    $site=Get-SPSite http://teams.contoso.com

    Set-SPAppPrincipalPermission -AppPrincipal $app -Site $site.RootWeb -Scope sitesubscription -Right fullcontrol -EnableAppOnlyPolicy

    Enable sending tokens over http:

    $config = (Get-SPSecurityTokenServiceConfig)
    $config.AllowOAuthOverHttp = $true

    $config.AllowMetadataOverHttp = $true

    $config.Update()


    Chris Givens CEO, Architecting Connected Systems Blog Twitter

    • Marked as answer by Dennis Guo Friday, February 7, 2014 11:16 AM
    Thursday, January 30, 2014 4:22 PM