How to consume REST api over SSL connection

Hi experts,

 I have a case where i need to consume a restful api web service from within SM over a https connection, i tried to use doHTTPRequest but i faced the following error 


Process panel process.option in RAD display encountered error in line 1 (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Bad arg(2) oper = (display,process.option)
Cannot evaluate expression (display,process.option)
Cannot evaluate expression (display,process.option)
Bad arg(2) oper = (display,process.option)
Cannot evaluate expression (display,process.option)
Script line 0: ERROR uncaught exception: Error: Error calling method: doHttpRequest in class: com/hp/ov/sm/server/utility/HttpClient Exceptio
n (java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.securi
ty.ssl.SSLContextImpl$DefaultSSLContext)) at char 1
Error calling method: doHttpRequest in class: com/hp/ov/sm/server/utility/HttpClient Exception (java.net.SocketException: java.security.NoSuchAlgorithmExceptio
n: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext))

I used the following code to fulfill the requirement:
function SMAnsibleInteg()
{
var cRequestUrl="">https://xxxxxxxxxxxxxxx";
var httpHeaders = new Array();
httpHeaders = lib.smis_RestClient.createBasicAuthHttpHeaders("en","Username","Password");
//var Headers = getRequestHeader(); .
var rawJSON = lib.smis_RestClient.doRESTGetRequest(cRequestUrl, httpHeaders);
print("Result " rawJSON );//var rcRequest = doHTTPRequest("GET", cRequestUrl, httpHeaders, null,10,10);
//print(HTTPRequest);
}

Appreciate your help regarding this case. 

the integration here is between Windows (SM Server) & Linux REDHAT (Ansible) over secured connection using doHTTPRequest