Connector Management/SIA - Pre-requisite scripts returning Error occurred while fetching CERT

Connector Management/SIA - Pre-requisite scripts returning Error occurred while fetching CERT

203
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:02 PM


Symptom


During the execution of ConnectorCheckPrerequisites_PrivilegeCloud.ps1, the script returns two of the following error blocks: 

 

[X] ConnectorManagementIOTCert - Source:; Message: Error occurred while fetching CERT: Failed to authenticate as client to <tenant>-ats.iot.<region>.amazonaws.com 

Error: Exception calling "AuthenticateAsClient" with "4" argument(s): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

 

[X] SIA-IOTCert - Source:; Message: Error occurred while fetching CERT: Failed to authenticate as client to <tenant>-ats.iot.<region>.amazonaws.com 

Error: Exception calling "AuthenticateAsClient" with "4" argument(s): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."

 

Standard network diagnostic commands like Test-NetConnection may simultaneously report TcpTestSucceeded : True, masking the underlying Layer 7 issue.



Environment


Privilege Cloud Privilege Cloud PSM

 Secure Infrastructure Agent (SIA), Connector Management Agent



Cause


While Layer 4 (TCP) routing over port 443 is open and functional, the secure tunnel breaks instantly during the Layer 7 (Application Layer) TLS handshake.

 

An upstream network security device—such as a Next-Gen Firewall (NGFW), Web Proxy, or Secure Web Gateway (e.g., Zscaler, Palo Alto, Cisco Firepower) may be utilizing SSL Decryption / Deep Packet Inspection (DPI) and will attempt to intercept the TLS Client Hello packet and substitute Idira's cloud certificate with an enterprise-signed corporate certificate.

 

Idira's backend utilizes Mutual TLS (mTLS) over WebSockets to establish a secure, cryptographically verified connection between the on-premises agent and AWS IoT Core.  Because mTLS explicitly forbids third-party certificate termination, the proxy or firewall breaks the packet stream, resulting in a dropped connection (TCP RST or hard drop) before a certificate exchange can finalize.



Resolution


To definitively confirm that a network device is terminating the TLS tunnel prior to the certificate payload exchange, execute the following script in an administrative PowerShell session on the affected server:

 

##NOTE: Define the endpoint URL (REPLACE <region> with your specific region, e.g., ca-central-1) before executing

 

 

###############################################################################################

 

# 1. Force the PowerShell session to use TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# 2. Define the endpoint URL (REPLACE <region> with your specific region, e.g., ca-central-1)
$uri = "https://a3vvqcp8z371p3-ats.iot.<region>.amazonaws.com"
$request = [System.Net.HttpWebRequest]::Create($uri)
$request.Timeout = 5000 # 5-second timeout

Write-Host "Attempting TLS 1.2 Handshake against $uri..." -ForegroundColor Cyan

try {
    $response = $request.GetResponse()
    $response.Close()
} catch {
    # Capture the underlying system exception
    $global:exception = $_.Exception
}

Write-Host "`n=========================================" -ForegroundColor Cyan
if ($request.ServicePoint.Certificate) {
    Write-Host "   OUTBOUND SSL CERTIFICATE ANALYSIS" -ForegroundColor Cyan
    Write-Host "=========================================" -ForegroundColor Cyan
    Write-Host "Subject: " -NoNewline; Write-Host "$($request.ServicePoint.Certificate.Subject)" -ForegroundColor White
    Write-Host "Issuer:  " -NoNewline; Write-Host "$($request.ServicePoint.Certificate.Issuer)" -ForegroundColor Yellow
} else {
    Write-Host "CRITICAL: Connection Dropped before certificate exchange." -ForegroundColor Red
    if ($global:exception) {
        Write-Host "Underlying Error: " -NoNewline
        Write-Host $global:exception.Message -ForegroundColor Magenta
        if ($global:exception.InnerException) {
            Write-Host "Detail:           " -NoNewline
            Write-Host $global:exception.InnerException.Message -ForegroundColor Magenta
        }
    }
}
Write-Host "=========================================`n" -ForegroundColor Cyan

 

###############################################################################################

 

 

If the script returns CRITICAL: Connection Dropped before certificate exchange, it confirms an upstream network security rule or firewall policy is blocking the TLS client hello sequence.

 

If an Issuer is successfully printed but names an internal corporate Certificate Authority rather than Amazon Root CA, SSL decryption is actively altering the traffic.

 

Engage your Network Security, Firewall, or Proxy infrastructure teams to implement a strict, uninspected outbound bypass for the host Connector server.

 

  1. Disable SSL Decryption / Inspection: Create an explicit rule excluding the Connector host IP from all outbound SSL decryption and inspection profiles targeting the Idira endpoints.

  2. Bypass Advanced Security Features: Disable Application Control, Threat Prevention, and Deep Packet Inspection (DPI) for this traffic profile. This prevents firewalls from misclassifying the mTLS WebSocket connection as an "unauthorized encrypted tunnel."

  3. FQDN/URL Whitelisting: Ensure uninspected outbound traffic is permitted over Port 443 to the following wildcard destinations:

    • *.iot.<region>.amazonaws.com

    • *.cyberark.cloud

    • *.amazonaws.com

 

(Note: If your firewall architecture does not support wildcard FQDNs, you must explicitly whitelist the specific regional endpoints displayed in your error logs, e.g., a3vvqcp8z371p3-ats.iot.<region>.amazonaws.com and a2m4b3cupk8nzj-ats.iot.<region>.amazonaws.com)



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001EVjCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail