Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Enabling ssl for the compliance servers' external server (port 8003)? #102

Open
bonen opened this issue Mar 1, 2018 · 2 comments
Open

Comments

@bonen
Copy link

bonen commented Mar 1, 2018

When I run the compliance server with the below configs I get the below error:

[bridge.cfg]

port = 8006
horizon = "https://horizon-testnet.stellar.org"
network_passphrase = "Test SDF Network ; September 2015"
compliance = "http://localhost:8004"
...

[stellar.toml]

FEDERATION_SERVER = "https://domain:8002/federation"
AUTH_SERVER = "https://domain:8003"
...

ERROR

INFO[0000] Starting external server on :8003
INFO[0000] Starting internal server on :8004
ERRO[0004] Error sending request to auth server auth_server="https:/domain:8003" err="Post https://domain:8003: http: server gave HTTP response to HTTPS client"

It can be fixed by replacing https with http in [stellar.toml]

FEDERATION_SERVER = "https://domain:8002/federation"
AUTH_SERVER = "http://domain:8003"
...

I think that shouldn't be the behaviour we want right? Can it be the case that the compliance server erroneously doesn't activate ssl for the external server?

Also, in the documentation it says that within [bridge.cfg] the compliance variable should be set to https://domain:8004 (instead of http://localhost) but if I actually do that I get the error:

ERRO[0014] Error sending request to compliance server err="Post https://domain:8004/send: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

PS
The documentation mentions config_compliance.toml & config_bridge.toml & port 8001 instead of compliance.cfg & bridge.cfg & port 8006 on the page:
https://www.stellar.org/developers/guides/anchor/4-compliance-server.html

@antb123
Copy link

antb123 commented Mar 2, 2018 via email

@phra
Copy link

phra commented Mar 7, 2018

offloading ssl with nginx will be the best solution.

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

No branches or pull requests

3 participants