david-hoze
david-hoze

Reputation: 1075

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.

Android recognizes my certificate as "one user certificate":

enter image description here

Instead of "one CA certificate", like in this picture (used a downloaded CA certificate):

enter image description here

Any idea what's causing this?

Upvotes: 2

Views: 3008

Answers (1)

david-hoze
david-hoze

Reputation: 1075

I fixed the issue. I used Creating a CA and it worked fine.

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, i.e. the one starting with -----BEGIN CERTIFICATE----- and ending with -----END CERTIFICATE-----, otherwise Android says "No certificate to install".

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.

Upvotes: 2

Related Questions