Skip to main content
You can create symmetric and asymmetric keys in Key Management Service (KMS):
  • Create a symmetric key if you need to encrypt and decrypt data with the same key material or generate data keys for envelope encryption.
  • Create an asymmetric key if you need a public-private key pair.

Prerequisites

Make sure you are in a group that has at least the editor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.

How to create a symmetric key

  1. In the web console, go to Cryptography → KMS.
  2. Click Create key.
  3. Specify a unique key name.
  4. In the Type field, select Symmetric key.
  5. (Optional) In Rotation period, set how often KMS should automatically rotate the key material. When a key is rotated, KMS generates a new key version and immediately sets it as the default version. You can set the rotation period in days, months or years. The Algorithm value is set automatically to AES-256-GCM.
  6. (Optional) Add a description.
  7. Click Create key.
The key appears in the list of symmetric keys.

How to create an asymmetric key

  1. In the web console, go to Cryptography → KMS.
  2. Click Create key.
  3. Specify a unique key name.
  4. In the Type field, select Asymmetric key.
  5. In the Algorithm field, select RSA-4096 or ECC (P-256).
  6. (Optional) Add a description.
  7. Click Create key.
The key appears in the list of asymmetric keys.

See also