Keytool usage with existing keys

0

Hi, My question is about keytool usage (https://docs.aws.amazon.com/cloudhsm/latest/userguide/keystore-third-party-tools_5.html) If we have keys that were already created into CloudHSM (created with previous keytool -genkeypair commands for example), can we create a new keystore and use those previously created keys (by re-importing the cert on the keystore?)

Use cases:

  • If you lost your keystore, (you are still able to see our keys into cloudhsm) so you are able to regenerate a new keystore and then re-import the signed certificate on it to use it properly.
  • if you want to use keytool with existing keys created by another tool

Thanks a for the feedback,

Adrien

질문됨 3달 전148회 조회
1개 답변
1

if keys were already created in CloudHSM using keytool or other methods, they can be imported into a new CloudHSM keystore.

To do this:

  • Create a new empty CloudHSM keystore and load it.

  • Use the key_mgmt_util importPrivateKey command to import each existing private key file into the HSM, specifying the new keystore alias.

  • The public key certificate corresponding to each private key can then be imported into the new keystore using keytool -importcert

  • Save the keystore to persist the imported keys. The keystore can then be reloaded as needed to access the imported keys.

https://docs.aws.amazon.com/cloudhsm/latest/userguide/alternative-keystore.html

https://docs.aws.amazon.com/cloudhsm/latest/userguide/manage-keys.html

AWS
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠