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 (https://github.com/couchbase/sync_gateway/wiki/SSL-support) 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 (http://www.akadia.com/services/ssh_test_certificate.html). 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 http://username:firstname.lastname@example.org:4984/sync_gateway/group:100
I get expected result. However when I use this curl command with https I get an error:
curl -X GET https://username:email@example.com:4984/sync_gateway/group:100
I get an error message like this:
curl: (35) Unknown SSL protocol error in connection to ec2-instance.compute-1.amazonaws.com:-9800
Also, Is there a way to run couchbase using SSL? Can you offer me suggestions for getting this going? Thanks