1

I have a .pem file and -key.pem. I'm on a Pixel 4a with Android 13, and when I go to Settings -> Security -> Advanced Settings -> Encryption -> Install certificate -> CA certificate, I can select one file. When I select the .pem file it just goes back to the Install certificate screen, and when I choose the -key.pem file it says that I need a private key to install it.
I don't know much about SSL certificates so help would be very much appreciated :)


Edit: I am using mkcert to generate a certificate for a certain IP address in my network. I am using KDE connect to send the files to my phone.

7
  • For what purpose do you want to install the certificate? Wifi WPA enterprise auth or VPN or just a custom root CA e.g. for traffic interception?
    – Robert
    Commented Sep 11, 2022 at 18:08
  • @Robert I'm developing a mobile website that requires https to function. I want to host it locally for testing, but when I do it says the site is not secure, so I want to give a certain IP an ssl certificate.
    – CalSch
    Commented Sep 11, 2022 at 18:51
  • Have you checked if your certificate has been added in the Trustworthy Login Data -> User list? If the certificate is present make sure to use the full DNS name in Chrome addressbar that is saved in the certificate.
    – Robert
    Commented Sep 11, 2022 at 20:31
  • It is not there, I don't think it's installing. Just for conformation, is this how installing a certificate works?
    – CalSch
    Commented Sep 11, 2022 at 21:47
  • Yes, this is the way it is supposed to work. I just tried to with an example custom ROOT CA certificate from a large insurance company and it works, you get a toast message "Certificate installed". May be the chosen certificate you are trying to install is invalid? Where does this certificate come from, how was it generated?
    – Robert
    Commented Sep 12, 2022 at 7:14

0

You must log in to answer this question.

Browse other questions tagged .