verify

为了确保在灾难恢复时,管理员能够提供足够数量的正确密钥分片,可定期使用admin verify命令进行演练,确保密钥分片备份机制正常运作、数据正确可用。

命令用法

以下是admin verify命令的参数列表

命令参数

示例

下面以 Admin1, Admin2, Admin3 三名管理员,验证其中两名管理员(Admin2, Admin3)备份的 Unseal Key 是否正确为例,讲解在如何使用admin verify命令进行密钥分片验证

1、Admin2 执行以下命令,启动任务,并输入 Unseal Key 进行验证:

$ cacli admin verify --participant=2
Please input your unseal key(Input will be hidden, and type Enter to confirm input. The nonce of the current operation is '4b765d5f-68e8-4c1a-b1d1-3b15b502ccc8'): <Admin2 input his/her Unseal Key and Enter>

Seal Type: Shamir
CA Verify Operation Nonce: 4b765d5f-68e8-4c1a-b1d1-3b15b502ccc8
Total Shares: 3
Threshold: 2
Verify Progress: 1/2
Verify Success: unfinished

The nonce can only be sent to other admins.

输出说明如下:

2、Admin3 执行以下命令,并输入 Unseal Key 进行验证,其中nonce值请向 Admin2 索要

$ cacli admin verify --nonce=4b765d5f-68e8-4c1a-b1d1-3b15b502ccc8 --input
Please input your unseal key(Input will be hidden, and type Enter to confirm input. The nonce of the current operation is '4b765d5f-68e8-4c1a-b1d1-3b15b502ccc8'): <Admin3 input his/her Unseal Key and Enter>

Seal Type: Shamir
CA Verify Operation Nonce: 4b765d5f-68e8-4c1a-b1d1-3b15b502ccc8
Total Shares: 3
Threshold: 2
Verify Progress: 2/2
Verify Success: true

...

Verify Successtrue时,表明 Admin2,Admin3 均已完成 verify 操作并且已经验证了备份的 Unseal Key 正确无误。