Couchbase and sync using ssl


I have sync_gateway and couchbase running on amazon AWS. How can I get set up to use SSL with couchbase and sync_gateway? I’m currently running couchbase on port 8091 and gateway on 4984.

I read here ( that I could use “SSLCert”:"/home/ec2-user/ssl/server.crt", and “SSLKey”:"/home/ec2-user/ssl/server.key" in config.json in order to have sync_gateway use SSL, but it doesn’t see to be working. Is the code for sync_gateway on the Amazon bundle too old for that ability? I created my own server.crt and server.key using open ssl as described here ( I converted the .crt file to .pem using openssl as well. I opened port 443 on my ec2 instance but I’m not sure if I need to do more with the ports?

I use curl to to access the sync gateway from a remote machine like this :
curl -X GET

I get expected result. However when I use this curl command with https I get an error:
curl -X GET

I get an error message like this:
curl: (35) Unknown SSL protocol error in connection to

Also, Is there a way to run couchbase using SSL? Can you offer me suggestions for getting this going? Thanks

I downloaded and configured sync gateway to verify using SSL on my local machine with the self signed certificates I created. This worked. I noticed that the capability to configure the sync gateway with SSL was added just 5 months ago. I think the version that comes with the Amazon bundle does not have the updated sync gateway and I’m guessing that’s why I couldn’t get it to work. I pulled down the latest sync gateway on me ec2 instance with this command wget I ran the new version of sync gateway under /opt/couchbase-sync-gateway/bin/sync_gateway using my same config.json and certs and it worked with SSL.