Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator appears not to trust Security Certificates in Browser

So I am running a few automated tests on an android emulator. I have two environments, my development PC running the android emulator, and our testing server running the android emulator. When I open the emulator and the browser app within the emulator, I can navigate to secure websites no problem. (For instance, google mail). However, in my testing server environment, I am seeing certificate errors on sites whose certificates should well be trusted. Is there an emulator configuration option for certificates that I am missing? Does the emulator need to connect to a service to verify the certificates and does not have access?

SSL certificate reads not from a trusted auth even though it's google, for pete's sake.

like image 235
Richthofen Avatar asked Dec 06 '25 03:12

Richthofen


1 Answers

Ensure that the date and time are set properly on the emulator. An incorrect time setting may well invalidate the certificate because it's not within validity window.

like image 188
Alther Avatar answered Dec 09 '25 00:12

Alther