I am trying to call 3rd party rest application from HPSM Scriptlibrary wherein I am calling doHttpRequest function with GET method and passing a HTTPS url. After executing the script, I am getting below error.
"Error calling method: doHttpRequest in class: com/hp/ov/sm/server/utility/HttpClient Exception (javax.net.ssl.SSLHandshakeException: java.security.cert.Certifi
cateException: No subject alternative names present)"
I could understand that I need to import certificate in HPSM server. However I am not able to figure out where exactly I should import the certificate file and how to detect the same at run time.
I am attaching the code written in the scriptlibrary.
Please help me troubleshoot this issue at the earliest.