How to Create Symmetric Key management Service on Amazon Web Service(AWS).
AWS Key Management Service (KMS) makes it easy to create and manage cryptographic keys and control their use across a wide range of AWS services and in applications. AWS KMS protects the customer master keys (CMKs) that you use to protect data and data keys.
Key management service provide two type of key:Symmetric & Asymmetric.
Symmetric Key management Service
Symmetic Key management(SKMS) is a single encryption key that is used for both encrypt & decrypt the data.
- Login to aws portal.
- Click on Services.
- Under Security, Identity,& Compliance select Key Management Service.
- Click on Create Key.
- Select Symmetric Key type.
- Click on Advanced options.
- Select KMS.
- Click on Next.
- Provide Alias name.
- Click on Add Tag.
- Provide tag key name & value.
- Click on Next
- Provide Key Administrative permission role. First create a IAM user & role click on link https://www.hackerxone.com/blog/how-create-iam-userrole-policy-amazon-web-serviceaws
- Enable Key administrators to delete this key
- Click on Next.
- Select exiting Key usage permission
- We can add multiple AWS account.
- Click on Add another AWS account & provide AWS account ID.
- Click on Next.
- Review all Key Configurations.
- Click on Finish.
- After sometime Symmetric KMS is ready.
Create Symmetric KMS using Shell
- Setup aws-cli on your system so click on link https://www.hackerxone.com/blog/how-install-configure-aws-cli-ubuntu-1804
- Run the following command:
aws kms create-key –key-usage <value>–tags TagKey=Name,TagValue=Test –description “example” –customer-master-key-spec SYMMETRIC_DEFAULT –origin <value