How to skip SSL in REST V2

Sivabalan1
Kilo Contributor

Hi,

In ServiceNow integration, how can I skip the SSL verification on RESTMessageV2?

var rm = new sn_ws.RESTMessageV2();
rm.setHttpMethod('post');
rm.setBasicAuth(userName,password);
rm.setEndpoint(url);
var response = rm.execute();

anything I missed to set in the rest message attribute?

1 ACCEPTED SOLUTION

Omkar Mone
Mega Sage

Hi Siva,

You can set the following property to false, this will cause the HTTPClient to not make the hostname verification against the ssl certificate provided.

find_real_file.png

"com.glide.communications.httpclient.verify_hostname"   to false

 

Hope it will solve your issue.

 

Regards

Omkar Mone

2020 Community MVP

View solution in original post

9 REPLIES 9

Hello,

 

Type sys_properties.LIST in the application navigator and search for *com.glide.communications.httpclient.verify_hostname in the Name column of that table.

 

Let me know if that helps.

 

Regards

Omkar Mone

Sivabalan1
Kilo Contributor

Thanks Omkar, it works.

You're welcome 🙂

Asrar
Kilo Explorer

when I add "com.glide.communications.httpclient.verify_hostname" property I get duplication error. 

java.sql.BatchUpdateException: (conn=5595) Duplicate entry 'com.glide.communications.httpclient.verify_hostname' for key 'name'
but I can't see any property set with name "com.glide.communications.httpclient.verify_hostname"