为什么在使用 CLI 或 API 时接收到 CKR_IBM_WK_NOT_INITIALIZED 错误?
使用 CLI 或 API 时,您会收到 CKR_IBM_WK_NOT_INITIALIZED 错误消息。
您可能会收到类似于以下消息的错误消息:
ibmcloud kp -i <service_instance_id> wrap <key_id> 正在打包密钥 ... 失败错误请求 :rpc 错误: 代码 = 未知 desc = GRPC 返回码: [0X434B525F484F53545F4D454D4F5259] GRPC 消息: [发生错误CKR_IBM_WK_NOT_初始化,来自 m_UnwrapKey] 中的 libep11.so
运行 ibmcloud tke cryptounit-compare 命令时,未在 CURRENT MASTER KEY REGISTER 上获取 Valid 确认。
确保正确设置了 HSM 主密钥An encryption key that is used to protect a crypto unit. The master key provides full control of the hardware security module and ownership of the root of trust that encrypts the chain keys, including the root key and standard key.。