Error Reference

Outbound SSL handshake failed: certificate validation error

Outbound SSL handshake failed: certificate validation error

Where this appears

This error appears in the System Log under System Diagnostics > Log > Application Log when ServiceNow attempts to make outbound HTTPS connections to external systems. It commonly occurs during REST API calls, web service integrations, or when using Business Rules, Script Includes, or scheduled jobs that connect to external endpoints.

Sourdough
Chrome Extension

Debugging this in a real instance?

Sourdough lets you trace "Outbound SSL handshake failed: certificate validation error" through system logs, script errors, and API health in the ServiceNow tab you are already using.

Add to Chrome

Free to install. Pro $5/month after a 14-day no-card trial.
Pro requires the ServiceNow admin role. Upgrade inside the extension.

Overview
Tasks
CMDB
API
Metrics
Monitor
Internals
Instance:sourdoughdev·Version:Yokohama
Instance StateONLINE
System StatusFully Operational
Session Timeout90 minutes
Logged-In Sessions2 (20 active)
Build Nameyokohama-12-18-2024_p1
IP Address10.159.128.43
Instance HealthHealth Score: 90%
🔥 5dSourdough (Chrome Plugin)Dark Mode

Cause

The target server is using a self-signed certificate that is not trusted by ServiceNow's certificate store. (high likelihood)

The server's SSL certificate has expired and needs to be renewed by the external system administrator. (high likelihood)

The certificate is issued by a Certificate Authority (CA) that is not included in ServiceNow's default trust store. (medium likelihood)

The server's certificate chain is incomplete, missing intermediate certificates required for proper validation. (medium likelihood)

The certificate's Common Name (CN) or Subject Alternative Name (SAN) does not match the hostname being accessed. (low likelihood)

Fix

Step 1: Navigate to System Diagnostics > Log > Application Log and search for the exact error message to identify which outbound connection is failing and the target URL.

Step 2: Test the target URL in a browser or use SSL checker tools to verify the certificate status, expiration date, and issuing authority.

Step 3: If the certificate is valid but from an untrusted CA, download the certificate chain from the target server using your browser or openssl commands.

Step 4: Navigate to System Definition > Certificates in ServiceNow to access the certificate management interface.

Step 5: Click 'New' to create a new certificate record and paste the certificate content in PEM format, ensuring you include the BEGIN and END CERTIFICATE lines.

Step 6: Set the certificate Type to 'Trust Store Certificate' and Format to 'PEM' to add it to ServiceNow's trusted certificate store.

Step 7: Save the certificate record and wait 5-10 minutes for the certificate cache to refresh before testing the connection again.

Step 8: Re-execute the failing integration or script to verify the SSL handshake now completes successfully and check the System Log for confirmation.

Test Your Knowledge

Quick 3-question quiz. See how your ServiceNow skills stack up.

Question 1 of 3Performance

A list view on a table with millions of records is slow. Best fix?

Select an answer to continue