Skip to content

Commit

Permalink
local setup procedure improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrFlick72 committed Mar 14, 2024
1 parent 7ec4a38 commit 94fa04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/key_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def store_key(key_table_name, master_key):
table = dynamodb.Table(key_table_name)
key_pair = kms_client.generate_data_key_pair(KeyId=master_key, KeyPairSpec='RSA_2048')
table.put_item(Item={
"master_key_id": key_pair["KeyId"],
"master_key_id": key_pair["KeyId"].split("/")[1],
"key_id": str(uuid.uuid4()),
"encrypted_private_key": base64.b64encode(key_pair["PrivateKeyCiphertextBlob"]).decode(),
"public_key": base64.b64encode(key_pair["PublicKey"]).decode(),
Expand Down

0 comments on commit 94fa04d

Please sign in to comment.