I am trying to install a self-signed certificate (signed using a self-made CA cert). I managed to successfully install the CA certificate. But when I am trying to install a user certificate I get the following error: "private key required to install certificate." The certificate that I am trying to install is a pem cert and was generated using OpenSSL and I didn't have any problems with it on my windows system.
-----BEGIN CERTIFICATE-----
MIIEBzCCAm+gAwIBAgIRANYwbUh/QDsEm5Fc6h1epIEwDQYJKoZIhvcNAQELBQAw
................................................................
60Gv8K2bhDNaEp3cWKFt0f0FBGo2Md79lyJWMDviuGLDI0OmPgkGT4e+LesGAvAp
-----END CERTIFICATE-----
Considering this is Android 10 I think this might be the same issue: Install self-signed certificates no longer working in Android Q
It mentions you need to combine the certificate with a key:
openssl pkcs12 -export -in YOUR_CREATED_CERT.crt -inkey YOUR_PRIVATE_KEY.key -out COMBINED_OUTPUT.p12
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.