Why old devices are excluded
Let's Encrypt uses ISRG Root X1 as its root. Android only added this root to its trust store in version 7.1.1. For years a cross-signature from IdenTrust's older root “DST Root CA X3” helped. That workaround has ended, and there will be no new cross-signature. Since then older devices fail on every website and service with a Let's Encrypt certificate.
Typical messages are “Your connection is not private” in the browser, and in apps Trust anchor for certification path not found or SSLHandshakeException. Android 4.x often has a second problem: TLS 1.2 is not enabled by default there, see SSLHandshakeException on older devices.
Five options
| Option | Suits | Effort |
|---|---|---|
| 1. Install ISRG Root X1 on the device | devices you manage | low |
| 2. A certificate from another CA for these devices | services used by many third-party old devices | medium, often paid |
| 3. Separate host name for old devices | tills, scanners, time clocks | medium |
| 4. Bundle the root in your own app | apps you develop | low to medium |
| 5. Browser with its own trust store | pure web applications | low, if available |
1. Install ISRG Root X1
Download ISRG Root X1 in DER format from the Let's Encrypt certificates page (letsencrypt.org/certificates). If you have it as PEM, the certificate converter turns it into DER. Then install it on the device as a CA certificate under Settings → Security → Install from storage. Android requires a screen lock for this.
An advantage on these old versions: up to Android 6, all apps trust CA certificates installed by the user, not just the browser. Only from Android 7 does an app have to allow this explicitly. On Android 7.0, therefore, only the browser and apps that allow user CAs benefit. More in the article installing a certificate on Android.
2. Another CA for these services
A certificate from a CA whose root has been in Android for a long time also works on old devices. These are mainly the large commercial CAs. Check first that the root really is in the trust store of the oldest device: under Settings → Security → Trusted credentials. Other ACME providers are an option too if their chain ends at an old root.
3. Separate host name
Instead of changing the main site, the old devices get their own name, such as legacy.example.com, with a certificate from a suitable CA or your internal CA. The main site keeps Let's Encrypt.
4. Root in your own app
From Android 7.0 you add the root in network_security_config.xml. For Android 6 and older you need your own TrustManager, with OkHttp for example via HandshakeCertificates containing the bundled root in addition to the system roots.
<network-security-config>
<base-config>
<trust-anchors>
<certificates src="system"/>
<certificates src="@raw/isrg_root_x1"/>
</trust-anchors>
</base-config>
</network-security-config>
5. Browser with its own trust store
Firefox for Android ships its own root certificates and does not depend on the system trust store. That helps as long as there is still a Firefox version for the device's Android version. It changes nothing for apps.
Prepare the root certificate for Android
# Check that it really is ISRG Root X1 (compare the fingerprint with the Let's Encrypt page) openssl x509 -in isrgrootx1.pem -noout -subject -fingerprint -sha256 # Convert PEM to DER, .crt extension for Android openssl x509 -in isrgrootx1.pem -outform der -out isrgrootx1.crt # Query the Android version via USB (or on the device: Settings → About phone) adb shell getprop ro.build.version.release
Check first
- Are the date and time on the device correct? A device with a flat battery often shows a date years in the past, and then every certificate is “not yet valid”.
- Does the server send the complete chain? The SSL check tells you.
- Can the device do TLS 1.2? From Android 5 it is the default.
FAQ
Does installing the old DST root certificate help?
No. DST Root CA X3 has expired, and Let's Encrypt no longer serves a chain ending at it.
Can I distribute ISRG Root X1 via MDM?
Yes, most MDM solutions can distribute CA certificates as a profile. On these Android versions all apps then trust the root as well.
Does this affect Android 7.0 too?
Yes. ISRG Root X1 is only included from 7.1.1. On 7.0 apps trust a manually installed root only if they allow user CAs.