Android 将我自制的 CA 证书识别为用户证书,但没有正确安装

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

我使用 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 创建了自己的 CA 证书。

Android 将我的证书识别为 "one user certificate":

而不是 "one CA certificate",就像这张图片(使用下载的 CA 证书):

知道是什么原因造成的吗?

我解决了这个问题。我用了 Creating a CA,效果很好。

不过,要在 Android 上安装它,您需要从输出 cacert.pem 中删除人类可读的文本,只保留证书数据,即以 -----BEGIN CERTIFICATE----- 和以 -----END CERTIFICATE----- 结尾,否则 Android 表示 "No certificate to install".

我认为之前的指南创建了一个常规证书,然后将其用作 CA 证书来签署服务器证书,但我只是猜测,请随时纠正我。