From 0d07299a3aa1252caa8858f9fd7a4749af6377d0 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 11 Aug 2024 12:59:37 +0200 Subject: [PATCH] trust ISRG root certificates to make Tusky work on Android 7 again (#4609) [Let's encrypt had to make some changes to their signing](https://letsencrypt.org/2023/07/10/cross-sign-expiration.html), as a result Android 7 doeesn't have the root certificates necessary to trust Let's encrypt signed certificates anymore. Since most Fedi instances use Let's encrypt, that is a problem. To work around we can add the certificates to Tusky directly. Details [here](https://stackoverflow.com/a/78309587). closes #4607 --- app/src/main/AndroidManifest.xml | 3 +- app/src/main/res/raw/isrg_root_x1.pem | 31 +++++++++++++++++++ app/src/main/res/raw/isrg_root_x2.pem | 14 +++++++++ .../main/res/xml/network_security_config.xml | 10 ++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/raw/isrg_root_x1.pem create mode 100644 app/src/main/res/raw/isrg_root_x2.pem create mode 100644 app/src/main/res/xml/network_security_config.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0a8740398..6901f3576 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,7 +19,8 @@ android:theme="@style/TuskyTheme" android:usesCleartextTraffic="false" android:localeConfig="@xml/locales_config" - android:enableOnBackInvokedCallback="true"> + android:enableOnBackInvokedCallback="true" + android:networkSecurityConfig="@xml/network_security_config"> + + + + + + + + +