The reason I put it on a webserver is mostly for convenience to make it easier to install.

I tried copying cafile.pem to /sdcard on a Galaxy Note II, but when I try the "Install from device storage" option, it just comes back with:

"No certificate file found on SD card"



On Mon, Aug 5, 2013 at 5:51 PM, Mehroz Ashraf <mehroz.ashraf85@gmail.com> wrote:
Why do you want to place the cert on webserver and point android browser? If you are doing this to download cert into android then that is probably not the right approach.

I used cafile.pem (without converting it into .der format) and placed the file in  SD card or phone memory, and point out linphone to get the CA from the path. You may search in libraries where it need to tell the path.


On Mon, Aug 5, 2013 at 12:15 PM, Peter <eidevm5@gmail.com> wrote:
Has anyone managed to get TLS working between Android Linphone and Freeswitch?

I've done the basic TLS setup as per https://wiki.freeswitch.org/wiki/Tls

I then convert the CA cert from PEM to DER format with:

openssl x509  -inform PEM -outform der -in cafile.pem -out fs.crt

I place fs.crt on a webserver and point my Android browser to it.

When I click on fs.crt, I get the default Android Certificate installer popup, but it always says:

"Package contains: one user certificate"

ie: it thinks it is a user cert rather than a CA cert.

Android appears to be a real pain to add a CA to its trusted credential store.

Really interested if anyone has managed to get Android to import the CA cert.

Thanks

Peter

____________________________________________________________




____________________________________________________________