HTTPS / XDataServer

I'am having trouble to get HTTPS working with XDataServer in Amazon Web Service EC2 instance. Have managed to use XDataServer with HTTP without problems, but with HTTPS can't get connection to work.

Should BaseUrl in XDataServer be like "http://+:2001/demos" or "https://+:2001/demos" when using HTTPS? Find this blog post about enabling HTTPS to server and there wasn't made any changes to server BaseUrl?

You have to use https when registering the BaseUrl to support HTTPS. Usually a different port is used for HTTP and HTTPS. Also, remember you have to open the port in EC2 firewall.

I got from AWS support this answer:

============
you added listener:
- HTTPS (443) to instance HTTPS (2001)

Because the ACM certificate cannot be exported and imported to your EC2 instance, your REST API servers cannot accept HTTPS protocol.

[How to fix]
modify the HTTPS (443) listener:
- HTTPS (443) to instance HTTP (2001)

After that, try to browse https://www.yourdomain.net/demos .
The networking path looks like

Client --[HTTPS, Port 443]--> https://www.yourdomain.net/demos (CLB) --[HTTP, Port 2001]--> EC2 instance

=============

How BaseURL should be in XDataServer, Is it "http://+:2001/demos", "https://+:2001/demos", "https://www.mydomain.net/demos"?

My knowledge of these cloud systems is very weak, but come to mind if certificate is not possible to add EC2 instance, is REST server response to client then only HTTP? There is listener for incoming calls, but is outgoing data going thru listener to client? So that HTTP is "transferred" to HTTPS in listener??

Started working with HTTPS after i made changes to HttpSys and started VM again.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.