HTTPS call not working in Apama using http client adapter

Hi Team,

I am trying to invoke a HTTPS REST endpoint , hosted in Integration Server from Apama using HTTP Client adapter.
But I am getting the below error,

2019-05-10 01:29:17.006 WARN [39004] - <connectivity.HTTPClientGenericTransport.httpClient> Caught exception processing a request: Malformed message (Invalid HTTP status code)
2019-05-10 01:29:17.007 ERROR [30428] - apamax.httpserversample.HelloWorldSender [2] Received error from HTTP server: apamax.httpserversample.HTTPError(3,400,“Malformed message: Invalid HTTP status code”)

Seems like the request is not even reaching the REST endpoint in this case.

But when I am changing to HTTP , it is working fine.

2019-05-10 01:39:20.814 INFO [29252] - apamax.httpserversample.HelloWorldSender [2] Received response from HTTP server: apamax.httpserversample.HTTPResponse(1,apamax.httpserversample.HelloWorldResp({“output”:“Hello Apama. How are you doing?”}))

Below is my YAML file details for the same,

connectivityPlugins:
HTTPClientGenericTransport:
libraryName: connectivity-http-client
class: HTTPClient

startChains:
httpClient:
- apama.eventMap
- mapperCodec:
apamax.httpserversample.HTTPRequest:
towardsTransport:
mapFrom:
- metadata.http.path: payload.path
- metadata.requestId: payload.id
- metadata.http.method: payload.method
- payload: payload.data
defaultValue:
- metadata.contentType: application/json
- payload.type: apamax.httpserversample.HelloWorld
- metadata.sag.type: HelloWorld
apamax.httpserversample.HTTPResponse:
towardsHost:
mapFrom:
- payload.body: payload
- payload.id: metadata.requestId

    apamax.httpserversample.HTTPError:
      towardsHost:
        mapFrom:
          - payload.id: metadata.requestId
          - payload.code: metadata.http.statusCode
          - payload.message: metadata.http.statusReason
- classifierCodec:
    rules:
      - apamax.httpserversample.HTTPResponse:
        - metadata.http.statusCode: 200
      - apamax.httpserversample.HTTPError:
        - metadata.http.statusCode: 400
- jsonCodec:
    filterOnContentType: true
- stringCodec
- HTTPClientGenericTransport:
    host: ${HOST}
    port: ${PORT}
    authentication:
      authenticationType: "HTTP_BASIC"
      username: "Administrator"
      password: "manage"

My query is for HTTPS , do I need to add any extra parameters?

Regards
Abir

I think this question was asked in two places, here and stackoverflow.
Linking the two since an answer was also provided there.
https://stackoverflow.com/questions/56073260/https-request-response-processing-via-apama