提交 dbb6f43a 编写于 作者: A Annie_wang

Merge branch 'PR13650' of gitee.com:Annie_wang/docs into PR13650

...@@ -203,7 +203,7 @@ cryptoCert.createX509Cert(encodingBlob, function (error, x509Cert) { ...@@ -203,7 +203,7 @@ cryptoCert.createX509Cert(encodingBlob, function (error, x509Cert) {
console.log("createX509Cert failed, errCode: " + error.code + ", errMsg: " + error.message); console.log("createX509Cert failed, errCode: " + error.code + ", errMsg: " + error.message);
} else { } else {
console.log("createX509Cert success"); console.log("createX509Cert success");
// Generate a public key by AsyKeyGenerator or obtain the public key by using getPublicKey() of the X509Cert instance. // The service needs to call getPublicKey() of the upper-level X509Cert object to obtain the public key.
let pubKey = null; let pubKey = null;
x509Cert.verify(pubKey, function (error, data) { x509Cert.verify(pubKey, function (error, data) {
if (error != null) { if (error != null) {
...@@ -355,8 +355,7 @@ Obtains the public key of this X.509 certificate. This API uses an asynchronous ...@@ -355,8 +355,7 @@ Obtains the public key of this X.509 certificate. This API uses an asynchronous
| Type | Description | | Type | Description |
| ------ | ---------------- | | ------ | ---------------- |
| cryptoFramework.PubKey | X.509 certificate public key obtained.| | cryptoFramework.PubKey | Public key of the X509 certificate obtained. This object is used only for **verify()** of **X509Cert**.|
**Example** **Example**
...@@ -398,8 +397,7 @@ Checks the validity period of this X.509 certificate. This API uses an asynchron ...@@ -398,8 +397,7 @@ Checks the validity period of this X.509 certificate. This API uses an asynchron
| Name | Type | Mandatory| Description | | Name | Type | Mandatory| Description |
| -------- | -------------- | ---- | ---------- | | -------- | -------------- | ---- | ---------- |
| date | string | Yes | Date of the certificate to check. | | date | string | Yes | Date in the YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ format. The date must end with **Z**, which indicates the UTC.|
**Example** **Example**
...@@ -584,9 +582,9 @@ Obtains the start time of this X.509 certificate. ...@@ -584,9 +582,9 @@ Obtains the start time of this X.509 certificate.
**Return value** **Return value**
| Type | Description | | Type | Description |
| ------ | -------------------------- | | ------ | ------------------------------------------------------------ |
| string | Start time of the X.509 certificate obtained.| | string | Start time of the X509 certificate validity period, in the YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ format. The value must end with **Z**, which indicates the UTC.|
**Example** **Example**
...@@ -620,9 +618,9 @@ Obtains the expiration time of this X.509 certificate. ...@@ -620,9 +618,9 @@ Obtains the expiration time of this X.509 certificate.
**Return value** **Return value**
| Type | Description | | Type | Description |
| ------ | -------------------------- | | ------ | ------------------------------------------------------------ |
| string | Expiration time of the X.509 certificate obtained.| | string | Expiration time of the X509 certificate validity period, in the YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ format. The value must end with **Z**, which indicates the UTC.|
**Example** **Example**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册