We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

The size of the handshake message exceeds the maximum allowed size

Daniel_O
Tera Expert
javax.net.ssl.SSLProtocolException: The size of the handshake message (41554) exceeds the maximum allowed size (32768): The size of the handshake message (41554) exceeds the maximum allowed size (32768)

When I'm performing a handshake with an API using a valid certificate, I get this servicenow error, I need to increase the handshake size to 50000, I can't find the property that allows me to make this change, reading solutions on the internet I saw this one:

 

    static{
        
        System.setProperty("jdk.tls.maxHandshakeMessageSize", "50000");
    }

    public static void main(String[] args) {

        SpringApplication.run(RestwrapperApplication.class, args);
    }

How can I apply this configuration to my action that is receiving this error?

 

1 ACCEPTED SOLUTION

Robert Kirchhof
ServiceNow Employee
6 REPLIES 6

Estevao Gabriel
Tera Contributor

I'm waiting for that answer too.

Robert Kirchhof
ServiceNow Employee

Please see: KB1642091

 

Hi, Robert

 

I don't have access to this KB, Can you share?

I've changed the access requirements. Please try again.