Couchbase-Ecosystem / cbl-ionic

Ionic Capacitor plugin for Couchbase Lite Enterprise (3.x+)
https://cbl-ionic.dev/
Apache License 2.0
4 stars 1 forks source link

Add support for pinned SSL Certificates #34

Open biozal opened 3 months ago

biozal commented 3 months ago

Is your feature request related to a problem? Please describe. As a developer, I need support for pinned SSL certificates with replication. This feature is used by enterprise companies that want to validate that the server they are connected to doesn't have a man in the middle attack or other common problems when certificates aren't validated.

Describe the solution you'd like In the native platforms for both iOS and Android, you can set a pinned certificate and have the SDK use that in the replication configuration.

iOS: https://docs.couchbase.com/couchbase-lite/current/swift/replication.html#lbl-cert-pinning

Android: https://docs.couchbase.com/couchbase-lite/current/android/replication.html#lbl-cert-pinning

Describe alternatives you've considered There is no alternative for this.

Additional context The cblite-js framework would need to add support along with cbl-ionic that takes in a file path to the cert file. Each app would have to have the cert file published in it so that the mobile build for iOS or Android would have access to the file.