How to allow all the HTTPS URLs to sync in CouchbaseLite Android
Asked Answered
Q

1

6

I have an Application which using Couchbase Lite. Till now i was using http and now we need to make little secure. So how to allow all the HTTPS URLs to sync with CouchbaseLite Android?

Qua answered 12/11, 2015 at 16:23 Comment(1)
What do you mean by "allow it"? Did you set up an HTTPS Sync Gateway?Consist
H
1

In the Configuring SSL section of the Sync Gateway documentation it states:

Sync Gateway supports serving SSL. To enable SSL, you need to add two properties to the config file:

  • "SSLCert": A path to a PEM-format file containing an X.509 certificate or a certificate chain.
  • "SSLKey": A path to a PEM-format file containing the certificate's matching private key.

If both properties are present, the server will respond to SSL (and only SSL) over both the public and admin ports.

To enable the Sync Gateway to use https configure the SSLCert and SSLKey by following the Configuring SSL documention. Once you have your certificates configured, the Couchbase Sync Gateway will use https.

In fact if you continue to use http URLs, the client won't be able to connect. The Sync Gateway doesn't support simultaneous http and https, it does one or the other. And enables https doesn't change the port that the Sync Gateway uses.

Hazelwood answered 26/2, 2018 at 23:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.