目录

Certificate Manager Overview

A device user may have certificate credentials that need to be stored securely for identity authentication and verification by other entities (devices, servers, or individuals). For example, an enterprise internal website issues certificate credentials to employees for identity authentication when they log in to the internal website.

The Certificate Manager APIs provide certificate credential management capabilities for users and your app. These capabilities enable encryption and secure storage of private data (the private key of the certificate) within certificate credentials.

In addition to storing certificate credentials, the Certificate Manager can also store CA certificates for verifying the certificate credentials of other entities (devices, servers, or individuals). For example, your app can use a pre-installed CA certificate to perform trust verification on the HTTPS certificate chain of an app server.

Functional Architecture

The Certificate Manager provides management capabilities for the following certificate types:

The device user can go to the Certificates & Credentials page in the Settings app to view and manage CA certificates and certificate credentials.

Certificate Type Certificate Ownership Certificate Management Method Actions Available to Device User Actions Available to App Typical Scenario
System CA certificate Operating system Pre-installed by the operating system View Read Verify the certificate chain of a public website server.
User CA certificate Device user Managed by the user Install/Uninstall/View Read, launch the install/uninstall dialog Verify the certificate chain of an enterprise internal server.
System certificate credential Operating system Managed by the user Install/Uninstall/View Launch the install dialog Perform access authentication when the device connects to an enterprise internal WLAN/VPN service.
User certificate credential Device user Managed by the user Install/Uninstall/Revoke authorization/View

Launch the install/authorization dialog

Read and sign

Log in to an enterprise internal server through mutual HTTPS.
Application certificate credential App Managed by the app NA Read/Install/Uninstall/Sign The app server authenticates the app identity.

Constraints

The Certificate Manager currently supports only certificates of the RSA, ECC, and SM2 algorithm types.

Development

The Certificate Manager provides development guidance for the following functionalities. Refer to them during development.