Solved: certificate installation worked using "Install from device storage" when I placed cert into "Downloads"

Answer from galets on Stack Exchange
🌐
Emteria
emteria.com › blog › install-root-certificate-android
Install root certificates on Android: Step up your device security
September 24, 2024 - In this guide, we'll define what Android trusted root certificates are, how to install root certificates on Android, and how to update them.
Top answer
1 of 12
144

Prior to Android KitKat you have to root your device to install new certificates.

From Android KitKat (4.0) up to Marshmallow (6.0) it's possible and easy. I was able to install the Charles Web Debbuging Proxy cert on my un-rooted device and successfully sniff SSL traffic.

Extract from http://wiki.cacert.org/FAQ/ImportRootCert

Before Android version 4.0, with Android version Gingerbread & Froyo, there was a single read-only file ( /system/etc/security/cacerts.bks ) containing the trust store with all the CA ('system') certificates trusted by default on Android. Both system apps and all applications developed with the Android SDK use this. Use these instructions on installing CAcert certificates on Android Gingerbread, Froyo, ...

Starting from Android 4.0 (Android ICS/'Ice Cream Sandwich', Android 4.3 'Jelly Bean' & Android 4.4 'KitKat'), system trusted certificates are on the (read-only) system partition in the folder '/system/etc/security/' as individual files. However, users can now easily add their own 'user' certificates which will be stored in '/data/misc/keychain/certs-added'.

System-installed certificates can be managed on the Android device in the Settings -> Security -> Certificates -> 'System'-section, whereas the user trusted certificates are manged in the 'User'-section there. When using user trusted certificates, Android will force the user of the Android device to implement additional safety measures: the use of a PIN-code, a pattern-lock or a password to unlock the device are mandatory when user-supplied certificates are used.

Installing CAcert certificates as 'user trusted'-certificates is very easy. Installing new certificates as 'system trusted'-certificates requires more work (and requires root access), but it has the advantage of avoiding the Android lockscreen requirement.

From Android N (7.0) onwards it gets a littler harder, see this extract from the Charles proxy website:

As of Android N, you need to add configuration to your app in order to have it trust the SSL certificates generated by Charles SSL Proxying. This means that you can only use SSL Proxying with apps that you control.

In order to configure your app to trust Charles, you need to add a Network Security Configuration File to your app. This file can override the system default, enabling your app to trust user installed CA certificates (e.g. the Charles Root Certificate). You can specify that this only applies in debug builds of your application, so that production builds use the default trust profile.

Add a file res/xml/network_security_config.xml to your app:

<network-security-config>    
    <debug-overrides> 
        <trust-anchors> 
            <!-- Trust user added CAs while debuggable only -->
            <certificates src="user" /> 
        </trust-anchors>    
    </debug-overrides>  
</network-security-config>

Then add a reference to this file in your app's manifest, as follows:

<?xml version="1.0" encoding="utf-8"?> 
<manifest>
    <application android:networkSecurityConfig="@xml/network_security_config">
    </application> 
</manifest>
2 of 12
45

I spent a lot of time trying to find an answer to this (I need Android to see StartSSL certificates). Conclusion: Android 2.1 and 2.2 allow you to import certificates, but only for use with WiFi and VPN. There is no user interface for updating the list of trusted root certificates, but there is discussion about adding that feature. It’s unclear whether there is a reliable workaround for manually updating and replacing the cacerts.bks file.

Details and links: http://www.mcbsys.com/techblog/2010/12/android-certificates/. In that post, see the link to Android bug 11231--you might want to add your vote and query to that bug.

🌐
Ivanti
help.ivanti.com › ap › help › en_US › fd › 2020 › Content › FileDirector › Admin › Clients › Install_Root_Certificate_on_Android.htm
Install Root Certificate on Android
This procedure is based on installing the root certificate on a Google Nexus phone running Android 4.0.4. It uses Internet Explorer in Windows 7 to download the certificate. You need to connect the phone to the PC using a USB cable in order to transfer the file to the device.
🌐
GitHub
gist.github.com › pwlin › 8a0d01e6428b7a96e2eb
Android : add cert to system store · GitHub
Make sure to copy your root certificate to /data/local/tmp · And then install that zip to magisk as you do for modules. Reboot and done. ... This helped a lot with Let's Encrypt rolling over to their ISRG Root X1 cert and old android machines. ... @Nattle @RevealedSoulEven could you tell how it worked for you i am testing on android 14 samsung ...
🌐
Kaspersky
support.kaspersky.com › secure-mobility-management › 2.0 › 241826
Installing root certificates on Android devices
For instructions on how to install certificates in personal profiles, please refer to Installing root certificates on the device. To add a root certificate in Kaspersky Security Center: In the console tree, in the Managed devices folder, select the administration group to which the Android devices ...
🌐
Reddit
reddit.com › r/androiddev › adding root ca certs on android 11
r/androiddev on Reddit: Adding Root CA certs on Android 11
February 6, 2024 -

I'm looking for information / instructions on how to add root / trusted CA certs onto a device. All the info I'm seeing is from older versions. We're looking to implement 802.1x EAP authentication for a private network. Dev's are saying w/ v11 it's not possible and point to this https://httptoolkit.com/blog/android-11-trust-ca-certificates/. One of us has a reading comprehension problem as that doesn't mean what they think it does (IMO). Well, I'm from Missouri, you're gonna have to show me.

TLDR:

Is it possible to load a root / trust anchor cert on v11 and have the system use it for trusting a cert for authentication purposes

Find elsewhere
🌐
IBM
ibm.com › docs › en › mpf › 7.1.0
Installing the root CA on Android
We cannot provide a description for this page right now
🌐
Samsung Knox Documentation
docs.samsungknox.com › admin › knox-manage › configure › certificates › certificate-authority-ca
Certificate authority (CA) | Knox Manage | Samsung Knox Documentation
Register the Certificate Authority (CA) to use the Knox Manage certificate services. Before adding the CA, first download the CA root certificate from a SCEP-supported CA server. This enables you to issue device certificates and external certificates. You can select the type of cloud connection ...
🌐
SSL2BUY
ssl2buy.com › home › wiki › how to install ssl certificate on android: an expert guide
How to Install SSL Certificate on Android Device?
January 3, 2025 - Go to the Settings of your Samsung device. Go to Biometrics and Security. Within that, select Other Security Settings. Select Install from Device Storage. Further, tap on CA Certificate.
🌐
N4L Support
support.n4l.co.nz › s › article › Installing-an-SSL-Certificate-on-an-Android-Device-Manually
Installing an SSL or TLS Certificate on an Android Device (Manually)
This article describes the step by step process of manual installation of a Trusted Root Certification Authority SSL or TLS Certificate on an individual Android device.
🌐
Herongyang
herongyang.com › PKI › Android-Install-Trusted-Certificate.html
Installing Trusted Root Certificate on Android phone
1. Tap on "Settings > Security" and scroll down to the "Credential storage" section. 2. Tap on "Install from storage - Install certificates from storage". The list of certificates in the "Download" folder is displayed.
🌐
Samsung Developer Forums
forum.developer.samsung.com › mobile
WebAuthn and root certificate(s) on Samsung mobile devices - Mobile - Samsung Developer Forums
November 1, 2022 - Clarification: By using the term “Root Certificate”, I am refering to a “Attestation Certificate”/“WebAuthn Root CA”/“Root CA”. What I am attempting to do: I have been trying to make use of WebAuthn in my …
🌐
Intranetssl
intranetssl.net › faqs › how-to-install-root-intermediate-ca-certificates-on-android
How to Install Root & Intermediate CA Certificates on Android
Learn how to install a CA certificate on Android 11+ and Samsung devices. Follow step-by-step instructions to securely add certificates from device storage.
🌐
Eggplantsoftware
docs.eggplantsoftware.com › epp › 9.0.0 › ePP › studio-install-root-certificate.htm
Installing the Root Certificate on Mobile Devices
When the certificate file is on ... move the file manually via USB tether, you can go to Lock screen and security > Other security settings > Install from device storage, then navigate to the certificate file to install it....
🌐
Start9
docs.start9.com › 0.3.4.x › guides › device-guides › dg-android › lan-android
Start9 | Trust Your Root CA on Android
Tap Settings > Security > More security settings > Encryption & credentials > Install a certificate > CA Certificate > Install Anyway and select your custom-named adjective-noun.local.crt certificate.
🌐
Http Toolkit
httptoolkit.com › blog › android-14-install-system-ca-certificate
New ways to inject system CA certificates in Android 14
September 21, 2023 - Since that was posted, quite a few people have talked to me about possible solutions, going beyond the previous approaches with new mechanisms that make it practical to do this in Android 14+, and there are some good options here. While direct root access to change these certificates by simply writing to a directory is indeed no longer possible, root is root, and so with a bit of work there are still some practical & effective ways to dig down into the internals of Android and seize control of these certs once more.