|
| 1 | +## stackit beta kms key create |
| 2 | + |
| 3 | +Creates a KMS key |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Creates a KMS key. |
| 8 | + |
| 9 | +``` |
| 10 | +stackit beta kms key create [flags] |
| 11 | +``` |
| 12 | + |
| 13 | +### Examples |
| 14 | + |
| 15 | +``` |
| 16 | + Create a symmetric AES key (AES-256) with the name "symm-aes-gcm" under the key ring "my-keyring-id" |
| 17 | + $ stackit beta kms key create --keyring-id "my-keyring-id" --algorithm "aes_256_gcm" --name "symm-aes-gcm" --purpose "symmetric_encrypt_decrypt" --protection "software" |
| 18 | +
|
| 19 | + Create an asymmetric RSA encryption key (RSA-2048) |
| 20 | + $ stackit beta kms key create --keyring-id "my-keyring-id" --algorithm "rsa_2048_oaep_sha256" --name "prod-orders-rsa" --purpose "asymmetric_encrypt_decrypt" --protection "software" |
| 21 | +
|
| 22 | + Create a message authentication key (HMAC-SHA512) |
| 23 | + $ stackit beta kms key create --keyring-id "my-keyring-id" --algorithm "hmac_sha512" --name "api-mac-key" --purpose "message_authentication_code" --protection "software" |
| 24 | +
|
| 25 | + Create an ECDSA P-256 key for signing & verification |
| 26 | + $ stackit beta kms key create --keyring-id "my-keyring-id" --algorithm "ecdsa_p256_sha256" --name "signing-ecdsa-p256" --purpose "asymmetric_sign_verify" --protection "software" |
| 27 | +
|
| 28 | + Create an import-only key (versions must be imported) |
| 29 | + $ stackit beta kms key create --keyring-id "my-keyring-id" --algorithm "rsa_2048_oaep_sha256" --name "ext-managed-rsa" --purpose "asymmetric_encrypt_decrypt" --protection "software" --import-only |
| 30 | +
|
| 31 | + Create a key and print the result as YAML |
| 32 | + $ stackit beta kms key create --keyring-id "my-keyring-id" --algorithm "rsa_2048_oaep_sha256" --name "yaml-output-rsa" --purpose "asymmetric_encrypt_decrypt" --protection "software" --output yaml |
| 33 | +``` |
| 34 | + |
| 35 | +### Options |
| 36 | + |
| 37 | +``` |
| 38 | + --algorithm string En-/Decryption / signing algorithm. Possible values: ["aes_256_gcm" "rsa_2048_oaep_sha256" "rsa_3072_oaep_sha256" "rsa_4096_oaep_sha256" "rsa_4096_oaep_sha512" "hmac_sha256" "hmac_sha384" "hmac_sha512" "ecdsa_p256_sha256" "ecdsa_p384_sha384" "ecdsa_p521_sha512"] |
| 39 | + --description string Optional description of the key |
| 40 | + -h, --help Help for "stackit beta kms key create" |
| 41 | + --import-only States whether versions can be created or only imported |
| 42 | + --keyring-id string ID of the KMS key ring |
| 43 | + --name string The display name to distinguish multiple keys |
| 44 | + --protection string The underlying system that is responsible for protecting the key material. Possible values: ["symmetric_encrypt_decrypt" "asymmetric_encrypt_decrypt" "message_authentication_code" "asymmetric_sign_verify"] |
| 45 | + --purpose string Purpose of the key. Possible values: ["symmetric_encrypt_decrypt" "asymmetric_encrypt_decrypt" "message_authentication_code" "asymmetric_sign_verify"] |
| 46 | +``` |
| 47 | + |
| 48 | +### Options inherited from parent commands |
| 49 | + |
| 50 | +``` |
| 51 | + -y, --assume-yes If set, skips all confirmation prompts |
| 52 | + --async If set, runs the command asynchronously |
| 53 | + -o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"] |
| 54 | + -p, --project-id string Project ID |
| 55 | + --region string Target region for region-specific requests |
| 56 | + --verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") |
| 57 | +``` |
| 58 | + |
| 59 | +### SEE ALSO |
| 60 | + |
| 61 | +* [stackit beta kms key](./stackit_beta_kms_key.md) - Manage KMS keys |
| 62 | + |
0 commit comments