" No subject alternative names present" error in midserver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2022 08:32 AM
I am trying to call a rest api hosted in onprem dc in my office using a midserver. The api has self signed ssl certificate. I have created a catalog in service now. The catalog is able to connect midserver. but the midserver is getting following error while calling the api
07/28/22 14:31:44 (008) Worker-Expedited:MIDWorker-ff2ad2d4474199107809e4be436d4392 Worker starting: RESTProbe source: https://172.17.73.58/client/api
07/28/22 14:31:45 (979) Worker-Expedited:MIDWorker-ff2ad2d4474199107809e4be436d4392 DEBUG: HOSTNAME_CHECK_FAILED hostName=172.17.73.58 verify_cert_property=null verify_hostname_property=null exception=java.security.cert.CertificateException: No subject alternative names present
07/28/22 14:31:45 (981) Worker-Expedited:MIDWorker-ff2ad2d4474199107809e4be436d4392 WARNING *** WARNING *** Request not sent to uri= https://172.17.73.58/client/api?id=623415b4-6436-42a3-8d38-c3171edafba3&apiKey=ac_U3Tf-HY5It0WeriWN3o_MY4OM6-s3Rx_T7DXhV1MSi4eTWmtq2NrwWg05S37XlrS_JUcNfGoj2DFaks_4EA&response=json&command=executeScene : org.apache.commons.httpclient.HttpException: java.security.cert.CertificateException: No subject alternative names present: java.security.cert.CertificateException: No subject alternative names present
07/28/22 14:31:45 (993) Worker-Expedited:MIDWorker-ff2ad2d4474199107809e4be436d4392 Enqueuing: /servicenow/midserver/agent/work/monitors/ECCSender/output_1/ecc_queue.ff2ad2d4474199107809e4be436d4392.xml
07/28/22 14:31:45 (994) Worker-Expedited:MIDWorker-ff2ad2d4474199107809e4be436d4392 Worker completed: RESTProbe source: https://172.17.73.58/client/api time: 0:00:01.973
i have set following mid server properties in snow.
What can i do to resolve the error?
- Labels:
-
MID Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2022 09:07 AM
Hi
your image is broken.
Please check the explanation in the following article: http://www.littlebigextra.com/how-to-fix-javax-net-ssl-sslhandshakeexception-java-security-cert-cert...
Maik