I can't seem to get the https proxy for my Realm Object Server running. I've followed every step in the docs, which include editing the configuration.yml file to change:
proxy.https.enable: true
proxy.https.listen_address: ::
proxy.https.listen_port: 9443
proxy.https.certificate_path: 'cert_path'
proxy.https.private_key_path: 'private_key_path'
When I visit http://example.com:9080 it's fine, but visiting https://example.com:9443 doesn't work - I've verified the paths are correct, and the cert/private key combination is valid.
Any help configuring this would be much appreciated, as I'm trying to get the app in conformance with Apple's ATS requirements!
The Realm Object Server is started by the "realm" user, you should check that the user has permissions to access the certificates.
Here is a list of instructions for setting up https with letsencrypt! on Ubuntu 16.04, maybe it helps identify your issue:
curl -s https://packagecloud.io/install/repositories/realm/realm/script.deb.sh | sudo bash
Section in
/etc/realm/configuration.yml
:Connect to the dashboard and create an account. ( Go to
https://${mydomain.com}:9443
)Go to the browser and choose "Connect to Object Server" Enter
realms://${mydomain.com}:9443
as Server Url and the username and password you just created. You should see a list of realms.