Ad

Invalid SSL Certificate In Android From A Local Server / Host

- 1 answer

I have a local server (Ubuntu, Nginx), which has a self-certified certificate installed. I have added the certificate to keychain access (on my Mac) as trusted, so when I load the page I get a valid certificate in chrome. Now I want to access the page via my phone (android), so I have installed the app virtual hosts and pointed the host to the server. When I access the page I get an SSL warning, is there any way to install the certificate on my device so that the cert is valid (needed for testing)?

Thanks

Ad

Answer

Android has some specific requirements when it comes to certificates, it's been some time since I had to import a certificate in an Android device, however make sure that its flagged as a root CA certificate.

The information here can help you with the details of it.

This document has the steps to import a certificate in the device.

Ad
source: stackoverflow.com
Ad