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
ServiceNow Employee
6 REPLIES 6

Hi Robert Kirchhof. When I try to open it it says: 

Your role does not grant you access to this article. Please use Search to find related content.

Robert Kirchhof
ServiceNow Employee
ServiceNow Employee

I've changed the access requirements. Try again please.