Getting error message for get rest method without authentication

rai5
Mega Guru

Hello, 

 

My get rest method is not functioning correctly when setting it up without authentication.

 

Error Message: Request not sent to uri= https://randomuser.me/api/?results=20 : org.apache.commons.httpclient.HttpException: Session contains no certificates - Untrusted

 

I am attaching a screenshot of the rest method configuration. It is a test API for random users when used from the browser and postman it works perfectly.

1 ACCEPTED SOLUTION

rai5
Mega Guru

The solution was to download the ssl cert from the server using the browser and imported into the ServiceNow table sys_certificate. This was only in my new PDI, old instances that migrated from previews versions did not have this issue.

View solution in original post

5 REPLIES 5

Hi Jose, 

 

Get the certificate of the web server you are trying to connect to. In my case I simply used the web browser to access it saving it to a .pem file. I then proceeded to create a new record on the sys_certificate table and populated the pem certificate field with the content of the pem file created, name it and save it. That would be it.