Device Certificate Kit is used to manage and validate digital certificates for apps. Overall, Device Certificate Kit provides the following two features:
Certificate algorithm library: parses digital certificate files, reads certificate attributes, and validates certificate chains.
Certificate management service: stores and manages digital certificates and private keys, including import, export, query, and signing.
The main purposes and target scenarios of digital certificates:
Trusted identity authentication: verifies the authenticity of entity identities (individuals, devices, servers, and organizations) to prevent impersonation and man-in-the-middle attacks.
Data transmission encryption: negotiates session keys based on certificates and asymmetric key systems to achieve end-to-end encryption on communication links (such as HTTPS).
Data integrity verification: signs data using the private key of a digital certificate to ensure that data is not tampered with during transmission or storage.
Permission and access control: uses digital certificates for identity-based access instead of account passwords to implement fine-grained permission control.
Typical scenarios for processing digital certificates using Device Certificate Kit in app development:
HTTPS network connections: validates the certificate chain of HTTPS servers, especially for custom certificate chain validation in apps.
Mutual HTTPS authentication: the HTTPS server authenticates clients requesting connections based on certificates.
Network communication services such as ArkWeb and Network Kit provide certificate chain validation, mutual HTTPS authentication, and other functions based on Device Certificate Kit.
The certificate management service depends on the key storage and management capabilities of Universal Keystore Kit when installing and using digital certificate credentials.

It is recommended that you use higher-level APIs to process certificates first. For example, when performing HTTPS network communication and validating the server certificate chain, use the certificate chain validation and SSL Pinning capabilities of Network Kit first.
Use Device Certificate Kit directly only when your app requires custom certificate chain validation logic (such as validating certificate subjects or certificate extension fields) or needs to access lower-level security protocol functions.
Device Certificate Kit does not provide the capabilities of generating or issuing certificates and CRLs. Such capabilities are implemented by a certificate authority (CA) rather than a single application.
This kit is supported on the Emulator.
There are some general differences between the Emulator and real devices. For details, please refer to Differences Between the Emulator and the Real Device.