Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of core on windows server 2012 #980

Open
anjanadv opened this issue Aug 29, 2018 · 7 comments
Open

Installation of core on windows server 2012 #980

anjanadv opened this issue Aug 29, 2018 · 7 comments

Comments

@anjanadv
Copy link

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.

@BMartinos
Copy link
Collaborator

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?

@anjanadv
Copy link
Author

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.

@rcrichton
Copy link
Member

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

@anjanadv
Copy link
Author

anjanadv commented Sep 4, 2018

@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

@rcrichton
Copy link
Member

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

@anjanadv
Copy link
Author

anjanadv commented Sep 7, 2018

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

@rcrichton
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants