Custom Certificate Authorities is a Magisk module which adds custom certificate authorities from a pre-defined path on the Android file system to the system trust store.
What sets it apart from similar modules like MagiskTrustUserCerts or MoveCert is that it doesn’t require you to install or continuously store the certificates in the user store.
Requirements
- Android 11 or newer
- Magisk v24.1 or newer
- A root file explorer (e.g., Amaze or Solid Explorer)
- A terminal emulator with Coreutils and OpenSSL (e.g., Cygwin or MSYS2 on Windows)
Installing the module
- Download the module from the GitHub releases page.
- Install the module with Magisk.
Preparing a folder for the certificates
- Using a root file explorer, create the folder
/data/misc/user/0/cacerts-custom
on your phone.
⚠ Please note that creating the folder cacerts-custom
in /storage/0/emulated
or /sdcard
will not work.
Preparing the certificates
- Launch Cygwin or MSYS2 on Windows or open a terminal emulator on Linux/Android/macOS/BSD.
- Verify that the certificate file is PEM-encoded.
$ cat example.crt
-----BEGIN CERTIFICATE-----
MIIBzzCCAXWgAwIBAgIQXLyRodQLpSqV0DpAU0NoJDAKBggqhkjOPQQDAjBGMR0w
GwYDVQQKExRQcm9qZWN0IERhdGEgSG9hcmRlcjElMCMGA1UEAxMcUHJvamVjdCBE
YXRhIEhvYXJkZXIgUm9vdCBDQTAeFw0yMjAxMTUyMTQ2MDVaFw0zMjAxMTMyMTQ2
MDVaMEYxHTAbBgNVBAoTFFByb2plY3QgRGF0YSBIb2FyZGVyMSUwIwYDVQQDExxQ
cm9qZWN0IERhdGEgSG9hcmRlciBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAENNsPYGcVUZb+CQXnViuakArj9GaJIxJLlcreUhVafwbEjF0gLwTv2ejv
ad3i4I7YFD1mxkluApIY4m1Dxv8gfKNFMEMwDgYDVR0PAQH/BAQDAgEGMBIGA1Ud
EwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYEFDLo84jisTNeQqnzvHiQEIq+WsHhMAoG
CCqGSM49BAMCA0gAMEUCIQC6RbYaWCeBjxYBx/F+ZtAsJwlqzwAzNkqu/A5oJhfF
sgIgK823XQmP2I0pBmhHXL/63sAqNgQBFv8M6+c8BaNwVSU=
-----END CERTIFICATE-----
- If the certificate file is DER-encoded, convert it to PEM before proceeding.
$ openssl x509 -inform DER -outform PEM -in example.crt -out example.crt
- Convert the certificate file to the correct format.
$ openssl x509 -noout -text -fingerprint -in example.crt >> example.crt
- Verify that the certificate file has the correct format.
$ cat example.crt
-----BEGIN CERTIFICATE-----
MIIBzzCCAXWgAwIBAgIQXLyRodQLpSqV0DpAU0NoJDAKBggqhkjOPQQDAjBGMR0w
GwYDVQQKExRQcm9qZWN0IERhdGEgSG9hcmRlcjElMCMGA1UEAxMcUHJvamVjdCBE
YXRhIEhvYXJkZXIgUm9vdCBDQTAeFw0yMjAxMTUyMTQ2MDVaFw0zMjAxMTMyMTQ2
MDVaMEYxHTAbBgNVBAoTFFByb2plY3QgRGF0YSBIb2FyZGVyMSUwIwYDVQQDExxQ
cm9qZWN0IERhdGEgSG9hcmRlciBSb290IENBMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAENNsPYGcVUZb+CQXnViuakArj9GaJIxJLlcreUhVafwbEjF0gLwTv2ejv
ad3i4I7YFD1mxkluApIY4m1Dxv8gfKNFMEMwDgYDVR0PAQH/BAQDAgEGMBIGA1Ud
EwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYEFDLo84jisTNeQqnzvHiQEIq+WsHhMAoG
CCqGSM49BAMCA0gAMEUCIQC6RbYaWCeBjxYBx/F+ZtAsJwlqzwAzNkqu/A5oJhfF
sgIgK823XQmP2I0pBmhHXL/63sAqNgQBFv8M6+c8BaNwVSU=
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
5c:bc:91:a1:d4:0b:a5:2a:95:d0:3a:40:53:43:68:24
Signature Algorithm: ecdsa-with-SHA256
Issuer: O = Project Data Hoarder, CN = Project Data Hoarder Root CA
Validity
Not Before: Jan 15 21:46:05 2022 GMT
Not After : Jan 13 21:46:05 2032 GMT
Subject: O = Project Data Hoarder, CN = Project Data Hoarder Root CA
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:34:db:0f:60:67:15:51:96:fe:09:05:e7:56:2b:
9a:90:0a:e3:f4:66:89:23:12:4b:95:ca:de:52:15:
5a:7f:06:c4:8c:5d:20:2f:04:ef:d9:e8:ef:69:dd:
e2:e0:8e:d8:14:3d:66:c6:49:6e:02:92:18:e2:6d:
43:c6:ff:20:7c
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Basic Constraints: critical
CA:TRUE, pathlen:1
X509v3 Subject Key Identifier:
32:E8:F3:88:E2:B1:33:5E:42:A9:F3:BC:78:90:10:8A:BE:5A:C1:E1
Signature Algorithm: ecdsa-with-SHA256
30:45:02:21:00:ba:45:b6:1a:58:27:81:8f:16:01:c7:f1:7e:
66:d0:2c:27:09:6a:cf:00:33:36:4a:ae:fc:0e:68:26:17:c5:
b2:02:20:2b:cd:b7:5d:09:8f:d8:8d:29:06:68:47:5c:bf:fa:
de:c0:2a:36:04:01:16:ff:0c:eb:e7:3c:05:a3:70:55:25
SHA1 Fingerprint=7E:5E:8A:73:0D:C9:86:A8:20:63:D1:38:53:38:B3:19:5C:C6:79:08
- Rename the certificate file to the correct format.
$ mv -v example.crt "$(openssl x509 -subject_hash_old -noout -in example.crt)".0
'example.crt' -> '829893ef.0'
Adding certificates
- Using a root file explorer, copy the
.0
certificate file(s) to/data/misc/user/0/cacerts-custom
. - Reboot.
Removing certificates
- Using a root file explorer, delete the
.0
certificate file(s) from/data/misc/user/0/cacerts-custom
. - Reboot.
Download Link
Module Info
Other modules
Ios Emoji Magisk / Kernelsu Module
iOS Emoji for Android can be installed using Magisk or KernelSU modules. These modules replace the default Android emojis with iOS-style emojis, giving your device a more Apple-like look and feel. Magisk Module: This is the most common method, and works with most Android devices. You can find Magisk …...
Audio Wizard DTSX Ultra Asus Zenfone 6 Magisk Module
DISCLAIMER Asus & DTS Apps and blobs are owned by Asus� & DTS�. The MIT license specified here is for the Magisk Module only, not for Asus & DTS apps and blobs. Descriptions Equalizer soundfx ported from Asus Zenfone 6 (ASUS_I01WD) and integrated as a Magisk Module for all supported and …...
Wifi Bonding No Lock Magisk Kernelsu
This module doubles your bandwidth, disables Wi-Fi packet logging (has high overhead and several related security issues) and other logging for less background load and perhaps some battery life. Others tweaks manual Force Wi-fi Low Latency Mode: This mode consumes more energy even if the screen is …...
Universal GMS Doze
Universal GMS Doze Overview Patches Google Play services app and certain processes/services to be able to use battery optimization Support API 23 or later Support Magisk, KernelSU, and APatch root implementations Download Links (Archive) GitHub Releases Mediafire MEGA SourceForge Troubleshootings …...
Magical Overlayfs Magisk Ksu Module
Use OverlayFS to make read-only system partitions become read-write partitions. OverlayFS MUST be supported by kernel! Recommended for EROFS ROMs. Changelog The release from the upstream repo of v3.2.2 is broken somehow with Magisk v27.0. I simply rebuilt it per comments in open issues on that repo …...
Bluetooth Library Patcher
Description This module attends to avoid losing bluetooth pairings after reboot or airplane mode switch on rooted samsung devices. It patches on the fly the bluetooth library and should support most of samsung devices on android Nougat, Oreo, Pie, 10, 11, 12, 13 and 14. This patch is NOT applicable …...
Gigainternet Magisk and kernelsu modules
This Magisk module is designed to improve network performance on Android devices by optimizing various system settings related to Wi-Fi and mobile data connections. Changelog Edited addresses and routes Fixed known bugs: WiFi loss, OnePlus and Oppo/Vivo/Samsung tricks with …...
Universal SafetyNet Fix Magisk KSU Module
Magisk module to work around Google’s SafetyNet and Play Integrity attestation. This module works around hardware attestation and updates to SafetyNet and Play Integrity CTS profile checks. You must already be able to pass basic CTS profile attestation, which requires a valid combination of …...
4K60 Camera Mod
Want to unleash the full power of your smartphone camera? The 4K60 Camera Mod Magisk Module might be just what you need. This module allows you to bypass software limitations and enable 4K video recording at 60 frames per second (fps) on devices that don’t officially support it. What is the …...
Font Manager Magisk / Kernelsu Module
Android users who love personalization often want to go beyond the default fonts offered by their devices. Magisk modules and KernelSU modules provide powerful ways to achieve this level of customization. Let’s delve into how they work and the benefits they offer. Font Manager Magisk Modules: …...