為何在使用 CLI 或 API 時收到 CKR_IBM_WK_NOT_INITIALIZED 錯誤?
當您使用 CLI 或 API 時,會收到 CKR_IBM_WK_NOT_INITIALIZED 錯誤訊息。
您可能會收到類似下列訊息的錯誤訊息:
ibmcloud kp -i <service_instance_id> wrap <key_id> 包裝金鑰 ... 失敗錯誤要求 :rpc 錯誤 :code = Unknown desc = GRPC 回覆碼: [0X434B525F484F53545F4D454D4F5259] GRPC 訊息: [取得錯誤 CKR_IBM_WK_NOT_INITIALIZED,從 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.。