jembi / openhim-core-js

The Open Health Information Mediator core component. OpenHIM Support: Post your query on OpenHIE Discourse using the #openhim tag https://discourse.ohie.org/

Home Page:http://openhim.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation of core on windows server 2012

anjanadv opened this issue · comments

Hello,
We have installed OpenHIM on a Windows Server 2012 VM following the documentation. But we are not able to access the Core API from the console. The error thrown by the Console while trying to login is as follows -
image

When trying to browse the API on port 8080 it is giving the following error -
image

Both the core and console are running on the same server. Core is setup as a windows service following the installation guidelines. There is no error being logged in stderr.log and stdout.log.
Console is hosted on port 80 on IIS. And core is also running on the default ports.

How can we resolve this issue?
Thanks.

Hi @anjanadv The issue with the login seems to be related to the Self Signed certificate that gets created when installing the OpenHIM core for the first time. Clicking the link in the Console error box should present you with a browser error page to explicitly accept the Self Signed certificate. Once its been accepted, the login process should proceed.

I do however see based on your screenshot that you arent presented with the "Advanced" option in Chrome to allow the insecure certificate which is strange. Are you able to telnet to that port to verify its open and allowing request?

Yes, We are able to telnet to that port. And this issue is not specific to one browser. We have observed this in all the browsers and multiple servers.

@anjanadv this could rather be an issue with the OpenHIM core not starting up correctly. Do you see any issues in the Core logs?

@rcrichton , No, there is no error being logged in the files. The core service seems to be running absolutely fine. Attached is the screenshot of stdout, stderr is empty.
log

During initialization(running for the first time after installing), we noticed that it is skipping 2 certificates(screenshot below), would that be a reason for the error?

screenshot 1

Those skip messages are normal. In the logs do you see something along the lines of 'API listening on port 8080'. Is there perhaps something else running on port 8080?

If you try curl https://localhost:8080/heartbeat what do you get. If you get a certificate error try curl -k https://localhost:8080/heartbeat

Yes, we can see the entry 'API HTTPS Listening on port 8080'.
We are getting the following when we run then curl
curl -k https://localhost:8080/heartbeat
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

Sorry, I haven't seen this before. It could be an issue with self signed certificates on windows. I did find this article. Perhaps it can be of help - https://medium.com/@sslsecurity/how-to-fix-err-ssl-version-or-cipher-mismatch-error-5447c30ac78a