oci_kms_sign

This resource provides the Sign resource in Oracle Cloud Infrastructure Kms service.

Creates a digital signature for a message or message digest by using the private key of a public-private key pair, also known as an asymmetric key. To verify the generated signature, you can use the Verify operation. Or, if you want to validate the signature outside of the service, you can do so by using the public key of the same asymmetric key. This operation is not supported for keys having protection mode EXTERNAL.

Example Usage

resource "oci_kms_sign" "test_sign" {
	#Required
	crypto_endpoint = var.sign_message_crypto_endpoint
	key_id = oci_kms_key.test_key.id
	message = var.sign_message
	signing_algorithm = var.sign_signing_algorithm

	#Optional
	key_version_id = oci_kms_key_version.test_key_version.id
	logging_context = var.sign_logging_context
	message_type = var.sign_message_type
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Sign * update - (Defaults to 20 minutes), when updating the Sign * delete - (Defaults to 20 minutes), when destroying the Sign

Import

Sign can be imported using the id, e.g.

$ terraform import oci_kms_sign.test_sign "id"