Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

Home > Success Center > Server & Application Monitor (SAM) > Connection failed to url. The underlying connection was closed: Could not establish trust relationship for the SSL-TLS secure channel

Connection failed to url. The underlying connection was closed: Could not establish trust relationship for the SSL-TLS secure channel

Updated April 20, 2017

Overview

The following error is encountered when using the OWA Form Login monitor:

The "Exchange 2010 OWA Form Login (PowerShell)" Application fails with the following error: "Connection failed to URL.  The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

Environment

All SAM versions

Cause 

The System.Net.ServicePointManager.ServerCertificateValidationCallback object is disabled in the PowerShell script. 

Resolution

Modify the Windows PowerShell monitor script within the "Exchange 2010 OWA Form Login (PowerShell)" application to enable the System.Net.ServicePointManager.ServerCertificateValidationCallback object from:

#This command set the static property in .NET that causes the error in HTTPS probes.
#[System.Net.ServicePointManager]:ServerCertificateValidationCallback = {$true}

to

#This command set the static property in .NET that causes the error in HTTPS probes.
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}

 

Note: A problem in the .NET implementation may cause HTTPS monitors to fail with the following error when the OWA script is used with other HTTPS monitors:

Unexpected error occurred. The underlying connection was closed: An unexpected error occurred on a send.

To prevent this, switch all HTTPS processes to 64-bit mode and keep the OWA PowerShell script running in 32-bit mode:

1. Go to Settings > SAM Settings > Manage Application Monitors.

2. Select the application that contains the HTTPS component and click Properties.

3. Open the Advanced section and set the Platform to run polling job on to x64.

4. Click Submit.

 

 

Last modified
00:24, 20 Apr 2017

Tags

Classifications

Public