简体   繁体   English

Android将我自制的CA证书识别为用户证书,并且未正确安装

[英]Android recognizes my self made CA certificate as a user certificate, and does not install it properly

I made my own CA certificate using OpenSSL as a CA without touching the certs/crl/index/etc environment's answer , and trying to install it using Add & remove certificates - Nexus Help . 我使用OpenSSL作为CA制作了自己的CA证书, 但没有碰到certs / crl / index / etc环境的答案 ,而是尝试使用“ 添加和删​​除证书-Nexus帮助”进行安装。

Android recognizes my certificate as "one user certificate": Android将我的证书识别为“一个用户证书”:

在此处输入图片说明

Instead of "one CA certificate", like in this picture (used a downloaded CA certificate): 代替此图中的“一个CA证书”(使用了下载的CA证书):

在此处输入图片说明

Any idea what's causing this? 知道是什么原因造成的吗?

I fixed the issue. 我解决了这个问题。 I used Creating a CA and it worked fine. 我使用了创建CA ,并且效果很好。

To install it on Android though, you need to remove the human readable text fro the output cacert.pem and leave only the certificate data, ie the one starting with -----BEGIN CERTIFICATE----- and ending with -----END CERTIFICATE----- , otherwise Android says "No certificate to install". 但是,要在Android上安装它,您需要从输出cacert.pem删除可读文本,仅保留证书数据,即以-----BEGIN CERTIFICATE-----开头并以-----END CERTIFICATE-----结束的证书数据。 -----END CERTIFICATE----- ,否则Android会显示“无证书安装”。

I think that the previous guide created a regular certificate and then used it as a CA certificate to sign the server certificate, but I'm only guessing, feel free to correct me. 我认为以前的指南创建了一个常规证书,然后将其用作CA证书来对服务器证书进行签名,但是我只是在猜测,请随时纠正我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM