Lines Matching refs:certificate
4 …h on how to create a certificate object, obtain information about the certificate, and check the v…
9 1. Import the [cert](../../reference/apis-device-certificate-kit/js-apis-cert.md) module.
14 …e/apis-device-certificate-kit/js-apis-cert.md#certcreatex509cert) to create an **X509Cert** object…
16 3. Obtain certificate information.<br>
17 … how to obtain the certificate version and serial number. For more information, see [X509Cert](../…
19 …certificate-kit/js-apis-cert.md#getpublickey) to obtain the public key in the certificate and use …
21 …In this example, a self-signed certificate is used. Therefore, the public key in the certificate i…
23 …ithDate](../../reference/apis-device-certificate-kit/js-apis-cert.md#checkvaliditywithdate) to che…
25 …is used to check whether the specified date is within the validity period of the X.509 certificate.
32 // The following is an example of the certificate binary data, which varies with the service.
47 // Convert the certificate data from a string to a Unit8Array.
49 …// Certificate format. Only PEM and DER are supported. In this example, the certificate is in PEM …
63 // Obtain the certificate version.
68 …// Use the getPublicKey() method of the upper-level certificate object or the self-signed certific…
71 // Verify the certificate signature.
89 // Check the validity period of the certificate.