简体   繁体   English

Android中来自本地服务器/主机的无效SSL证书

[英]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.

相关问题 Android - 通过本地 HTTPS 服务器的视频流:SSL 证书被拒绝 - Android - Video streaming over local HTTPS server: SSL certificate rejected Android如何允许来自特定服务器的特定SSL证书 - Android How to allow specific SSL certificate from a specific server 无法从客户端(android)连接到本地主机tcp服务器? - Unable to connect to local host tcp server from a client(android)? Android-SSL证书到IP-仍然无法通过主机验证 - Android - SSL Certificate to IP - Still failing host validation 使用 digicert 在服务器中更新证书后 Android ssl 证书错误 - Android ssl certificate error after renewing the certificate in server using digicert 如何以及使用什么服务器证书与android SSL客户端证书身份验证 - How and what server certificate to use with android SSL client certificate authentication 从Android中的文件加载SSL证书 - Load SSL certificate from file in Android 从 Android 设备上的网站下载 ssl 证书 - Download the ssl certificate from website on Android device 从 android 连接到 REST Web 服务会引发 javax.net.ssl.SSLException: 不受信任的服务器证书 - Connecting to REST webservice from android throws javax.net.ssl.SSLException: Not trusted server certificate Android-在本地网络内托管服务器? - Android - Host a server inside local network?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM