Certificates on Xiaomi smartphones play a key role in ensuring the security of connections, but sometimes they need to be removed.This may be necessary when changing the work network, after installing suspicious applications or to fix connection errors to the Wi-Fi/VPN. However, improper removal of certificates can disrupt system functions, so it is important to act carefully.
In this article, you will find step-by-step instructions for all types of certificates (root, user, VPN), including features of the MIUI 12/13/14 interface. We will also analyze common errors (for example, "Certificate not deleted" or "No permissions") and give recommendations for system recovery if something goes wrong.
Before you start, make sure you have a backup of important data - some operations may require resetting.If you use a smartphone at work, coordinate with the IT- department: removing corporate certificates may block access to internal resources of the company.
Types of certificates on Xiaomi: which can be removed and which can not
Xiaomi devices have three main types of certificates, each of which has its own purpose and level of risk when deleted:
- π Root certificates are built into the system to authenticate sites and applications, and deleting most of them will cause errors in SSL- connections in the browser and applications.
- π€ User certificates are manually installed (e.g., for corporate mail or Wi-Fi) and can be removed without system consequences.
- π‘οΈ VPN- Certificates -- used by applications to create secure tunnels, and deleting them would break the connection to the VPN- services.
Particular care should be taken with certificates whose names contain Android, Google or MIUI. their removal can cause disruptions in the work of Google Play Services or Xiaomi branded services (for example, Mi Cloud or Mi Account).
| Type of certificate | Can I remove it? | Possible consequences |
|---|---|---|
| Root (systemic) | β No. | SSL errors, update blocking, app crashes |
| User-generated (manually installed) | β Yes. | Loss of access to protected resources (Wi-Fi, mail, VPN) |
| VPN- Certificates | β Yes. | Breaking VPN- connections, need to reconfigure |
| Application certificates (e.g. banking) | β οΈ Conditionally. | Reinstallation of the application or re-authorization is required |
β οΈ Warning: On some Xiaomi models (e.g. Redmi Note 10 Pro or POCO F3), deleting the MiuiSystemUI certificate may result in loss of functionality of the notification panels.
Preparing the phone before removing the certificates
Before you start deleting, follow a few mandatory steps to avoid data loss or device locking:
- Backup. Use the built-in Settings β About Phone β Backup or third-party apps like Swift Backup (root rights required).
Check out MIUI's version.
- MIUI 14 β Settings β Passwords and Security β Additional β Certificate Management
- MIUI 12/13 β Settings β Additional β Privacy β Certificate Management
- Disable antivirus. Software like Mi Security or Avast can block access to system settings.
- Choose a certificate. Find the one you want in the list (see name or date of installation). If there are many certificates, search by name.
- Delete the certificate. Click on it, then select Delete (or Revoke for some types). Confirm the action with a password/fingerprint.
If the Delete button is inactive, it means that the certificate is protected by the device's policy.
- π Try resetting security settings (Settings β System β Resetting β Resetting security settings).
- π± Reboot your phone in Safe Mode (hold the power button β βReboot in Safe Modeβ) and try again.
β οΈ Warning: Some Xiaomi models (e.g., Mi 11 Ultra) may require re-authorization in applications using this certificate (e.g., Outlook corporate mail or Microsoft Teams) after deleting the user certificate.
π‘
If you delete the certificate for a Wi-Fi network, write down its password before it is deleted, and after it is deleted, the network may require you to re-enter the data to connect.
Removal of VPN- Certificates: Features and Risks
VPN- certificates differ from standard user certificates in that they are often tied to specific applications (e.g. OpenVPN, NordVPN or ProtonVPN) and deleting them will break the secure connection but not affect the system's performance. Here's how to do it correctly:
- Find VPN- certificates. Go to Settings β Connections and Sharing β VPN. Click on the gear (βοΈ) next to the active VPN- connection. Select Certificate Management (or Security Settings).
Delete the certificate.
- In the list, find a certificate called VPN- service (for example, NordVPN Root CA).
- Click Delete and confirm the action.
- Reboot the device. This is necessary for the changes to take effect.
If the VPN stopped working after you delete it, try:
- π Reinstall the VPN application, which will automatically install new certificates.
- π₯ Manually download the certificate from the providerβs website (usually the βManual Setupβ or βConfiguration Filesβ section).
- π§ Reset network settings (Settings) β SIM-maps and mobile networks β Resetting network settings).
Some VPN- services (e.g., WireGuard) do not use traditional certificates but rely on encryption keys, in which case deleting certificates will not help - you need to delete the application itself or its data (Settings β Applications β VPN- Application β Storage β Clear Data).
What if the VPN is not connected after the certificate is deleted?
How to remove a root certificate without root rights
Removing root certificates is a risky operation that can cause browsers, messengers, and even system updates to fail, but in some cases it is necessary (for example, to remove suspicious certificates installed by viruses).
- Open the root certificate menu. Go to Settings β Passwords and Security β Additional β Certificate Management β Root. If there is no item, search by settings (the magnifier icon at the top).
- Turn off the certificate (don't delete!). Click on the certificate β select Disable (do not delete!) This will temporarily block its use without physically deleting it.
Check the workability.
- Open your browser and try to visit HTTPS- sites (e.g. google.com).
- If errors such as NET::ERR_CERT_AUTHORITY_INVALID occur, turn the certificate back on.
If you still need to completely remove the root certificate, you will need to use the ADB- command (Developer Mode is required):
adb shell pm uninstall -k --user 0 <name package certificate>To find the name of the package, use the command:
adb shell pm list packages | grep "cert"β οΈ Warning: Deleting root certificates via ADB may disrupt Google Pay, Mi Pay, and other payment systems. On devices with MIUI Global, it may also block access to Xiaomi branded services (e.g., Mi Cloud).
π‘
Disabling the root certificate is a safer option than deleting it, and it allows you to test the consequences without irreversible changes.
Hidden Certificates: How to Find and Delete Invisible Files
Some certificates are not displayed in the standard MIUI menu, but they continue to affect the device.
- π΅οΈββοΈ Certificates installed by viruses (often disguised as system certificates).
- π’ Corporate Certificates Hidden by MDM (Mobile Device Management) Policy.
- π Residual files after deleting applications.
To find them, use one of the methods:
Method 1: File Manager (without root)
- Open File Manager (or any other file manager with access to system folders).
- Go to /data/misc/user/0/cacerts-added/ User certificates are stored here.
- Delete files with the.0 extension (e.g., user_added_cert.0).
- Reset the device.
Method 2: ADB (for experienced users)
If you have Developer Mode enabled, follow the commands:
adb shell
su
cd /data/misc/user/0/cacerts-added/
ls -laTo remove the certificate:
rm <name file certificate>β οΈ Warning: Deleting files from the /data/misc/keystore folder may result in loss of access to protected data (such as Wi-Fi passwords or application data).
If you suspect that the certificate is installed by a virus, check the device with an antivirus (Malwarebytes or Dr.Web) and reset (Settings β About Phone β Reset) This will delete all user certificates, but save personal data.
Errors in the removal of certificates and their solutions
When working with certificates on Xiaomi, users often encounter common mistakes, and here are the most common ones and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| "Certificate not deleted" (button is inactive) | Certificate protected by device or application policy | Reset your security settings or remove via ADB |
| "No access rights." | No Administrator Rights or Safe Mode enabled | Restart your phone in normal mode or get root rights |
| Error "SSL handshake failed" after deleting | Removed the root certificate required for HTTPS- connections | Restore the certificate from a backup or reset the settings |
| Apps stopped opening | Removed certificate linked to application license | Reinstall the application or restore the certificate |
| "Certificate not found" in the settings menu | The certificate is hidden or installed in the system folder | Use ADB or File Manager to search for your files |
If after removing the certificates, the phone began to overheat or discharge faster, this may indicate:
- π Background activity of system processes attempting to reconnect.
- π οΈ Damage to system files (e.g. keystore)
In this case, perform a soft reset (Settings β About Phone β Resetting β Resetting all settings) or contact the service center.