How to enable HTTPS on a local test server?

295 views
Skip to first unread message

alekse...@gmail.com

unread,
Jul 12, 2017, 1:02:28 AM7/12/17
to HAPI FHIR
Good day!

We're configuring our local server for testing purpose, it works OK for HTTP but it shows an error when trying to access it with HTTPS, the error message as below:

...
This site can't provide a secure connection

192.168.xxx.xxx sent an invalid response.

ERR_SSL_PROTOCOL_ERROR
...

Is there any information how to enable HTTPS for the local test server?

James Agnew

unread,
Jul 12, 2017, 6:36:13 AM7/12/17
to Aleksei Mulin, HAPI FHIR
Hi Aleksey,

There are a few ways of doing this- you can deploy a WAR file to a Tomcat instance that has HTTP enabled as one way. See their documentation on how to do this: https://tomcat.apache.org/tomcat-8.5-doc/ssl-howto.html

The way I usually do it these days is to put a nginx reverse proxy in front of it and set up HTTPS there. This tutorial isn't HAPI specific. but has some instructions about our usual setup with Linux/Postgres/nginx and using Letsencrypt to get a certificate for it: https://smilecdr.com/docs/current/getting_started/preparing_a_linux_host.html

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+unsubscribe@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/156fd2bd-9f67-4ffc-a3e5-920b2ea2975b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

alekse...@gmail.com

unread,
Jul 12, 2017, 7:21:34 AM7/12/17
to HAPI FHIR, alekse...@gmail.com
Hi James,

Yep, thanks for the info!


On Wednesday, July 12, 2017 at 7:36:13 PM UTC+9, James Agnew wrote:
Hi Aleksey,

There are a few ways of doing this- you can deploy a WAR file to a Tomcat instance that has HTTP enabled as one way. See their documentation on how to do this: https://tomcat.apache.org/tomcat-8.5-doc/ssl-howto.html

The way I usually do it these days is to put a nginx reverse proxy in front of it and set up HTTPS there. This tutorial isn't HAPI specific. but has some instructions about our usual setup with Linux/Postgres/nginx and using Letsencrypt to get a certificate for it: https://smilecdr.com/docs/current/getting_started/preparing_a_linux_host.html

Cheers,
James
On Wed, Jul 12, 2017 at 1:02 AM, <alekse...@gmail.com> wrote:
Good day!

We're configuring our local server for testing purpose, it works OK for HTTP but it shows an error when trying to access it with HTTPS, the error message as below:

...
This site can't provide a secure connection

192.168.xxx.xxx sent an invalid response.

ERR_SSL_PROTOCOL_ERROR
...

Is there any information how to enable HTTPS for the local test server?

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages