[英]Invalid SSL certificate in Android from a local server / host
I have a local server (Ubuntu, Nginx), which has a self-certified certificate installed. 我有一个本地服务器(Ubuntu,Nginx),该服务器安装了自认证证书。 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.
我已将该证书添加为信任的证书(在Mac上)(用于Mac上),因此在加载页面时,我会获得一个有效的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.
现在,我想通过手机(android)访问该页面,因此我已经安装了应用程序虚拟主机,并将主机指向服务器。 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)?
当我访问页面时,收到SSL警告,是否有任何方法可以在设备上安装证书,以使证书有效(需要进行测试)?
Thanks 谢谢
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. Android对证书有一些特定要求,距离我必须在Android设备中导入证书已有一段时间,但是请确保将其标记为根CA证书。
The information here can help you with the details of it. 这里的信息可以帮助您详细了解信息。
This document has the steps to import a certificate in the device. 本文档包含在设备中导入证书的步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.