From: Neeraj K. <kus...@ya...> - 2016-10-15 15:04:11
|
Hi All, I was looking at testCMKConvertMigration() method of TestCMK.java file which explain about how to migrate CMK. But I having doubt after the migration complete, when I tried to log the migrated key it throw exception TcIRsaKey migratedKey = context_.createRsaKeyObject(TcTssConstants.TSS_KEY_STRUCT_KEY12 | TcTssConstants.TSS_KEY_SIZE_2048 | TcTssConstants.TSS_KEY_TYPE_SIGNING | TcTssConstants.TSS_KEY_MIGRATABLE | TcTssConstants.TSS_KEY_CERTIFIED_MIGRATABLE); migratedKey.CMKConvertMigration(destKey, migData, random);migratedKey.loadKey(destKey); The last link throw exception TSS Error:error layer: 0x3000 (TSP)error code (without layer): 0x0117error code (full): 0x3117error message: The operation failed due to an invalid object status.additional info: Can not load key into TPM that has not been initialized (e.g. createKey or load key from persistent storage) Thanks Neeraj |