HI ,
sync_gateway wi working find on Android but i’m not able to fetch data on IOS ,
I tried to add ssl certificate on sync_gateway but after that i’m getting this.
Client sent an HTTP request to an HTTPS server.
this is a my sync gateway configuration file
{
“log”: ["*"],
“SSLCert”: “/fullchain.pem”,
“SSLKey”: “/privkey.pem”,
Can you clarify where you are seeing the " Client sent an HTTP request to an HTTPS server." error? Is it in the Sync Gateway logs? Getting a copy of those would be useful.
Ensure the Sync Gateway URL you’re specifying in your app is using the secure version of the websocket protocol scheme. E.g: wss://example.org:4984/your_database instead of the non-secure ws:// version.
If you have any kind of proxy or load balancer in front of Sync Gateway, ensure it is handling HTTPS traffic by visiting the SG URL in a browser.
When i add
“SSLCert”: “/fullchain.pem”,
“SSLKey”: “/privkey.pem”,
then
i see Client sent an HTTP request to an HTTPS server. on https://example.org:4985
I’m using apache to handle proxy request
this is my proxy configuration
ProxyPreserveHost On
ProxyPass / ws://127.0.0.1:4984/
ProxyPassReverse / ws://127.0.0.1:4984/
Everything working fine on Android , But facing issue on IOS.
Yes, because the client (or in this case the proxy) is sending an insecure request (http/ws) to the server that is only serving secure (https/wss) requests.