EMA API Having SSL Connect Error After Server Migrate

Application resided in cloud server had encountered "SSL connect error" exception recently. Please provide advices or suggestions why this might happen.

Below is a snip shot of the error in our log file.

image


Thank you in advance.

Best Answer

  • Jirapongse
    Answer ✓

    @Kia Wai

    From my checking, the "SSL connection error" is too generic to identify the problem.

    However, the error message indicates that the problem happens when requesting an authentication token.

    EMA uses libcurl to send HTTP requests. Therefore, I think you can use the following curl command on that machine to verify the problem.

    curl -X POST "https://api.refinitiv.com/auth/oauth2/v1/token&quot; -H  "accept: application/json" -H  "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&username=<machineID>&password=<password>&client_id=<clientID>&takeExclusiveSignOnControl=true"

    Please change <machineID>, <password>, and <clientID> to your machine ID, password, and client ID.

    If the issue also occurs with the curl command, it could be a problem in the machine's settings.



Answers

  • Hi @jirapongse.phuriphanvichai, sorry for late reply.


    curl is not installed in this server. The program uses libcurl within the same folder, which works in another server (same libcurl, same credential).


    Below is a screenshot of log recorded using RestLogEnable in EmaConfig.

    image


    We had opened port 443 in firewall to connect to api.refinitiv.com via private link. Is port 80 needed to be opened as well ?

    image


    Feel free to ask if you need more information regarding this issue.

  • @Kia Wai

    What is the version of EMA you are using?

    If it is old, please upgrade it to the latest version. The latest version is Real-Time-SDK-2.0.2.L1.