简体   繁体   中英

What happens if root CA expired in Android

What happens if one of system CA certificate got expired (GlobalSign Root CA - R2 gonna expire in 2021) in Android? How I can update to latest root CA in my android phone(user-build that never receives any OTA), if one got expired?

You can use Google Play Services to update the devices Root-CAs and other security relevant issues.

https://developers.google.com/android/reference/com/google/android/gms/security/ProviderInstaller

try {
    ProviderInstaller.installIfNeeded(this);
} catch (GooglePlayServicesRepairableException e) {
    GoogleApiAvailability.getInstance().showErrorNotification(this, e.getConnectionStatusCode());
} catch (GooglePlayServicesNotAvailableException e) {
}

The required class should be provided with the GooglePlayServices-Base artifact:

dependencies {
    implementation 'com.google.android.gms:play-services-base:17.1.0'
}

See this article for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM