realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Re-add custom certificate support #7739

Closed cmelchior closed 1 year ago

cmelchior commented 1 year ago

This PR re-adds custom certificate code that was assumed to not be needed anymore. We where wrong. It was mostly the public API's and tests that had been removed. Most of the internal plumbing was still present in the code base.

It has not been possible to test the success case, but since the code has just been re-added it is assumed to work. The error case is tested by the tests and these also verify that we correctly load the certificate from assets and call the validate functions.

TODO