| page_title | subcategory | description |
|---|---|---|
criblio_certificate Resource - terraform-provider-criblio |
Certificate Resource |
Certificate Resource
resource "criblio_certificate" "my_certificate" {
ca = "LS0tLS1CR...FLS0tLS0K"
cert = "LS0tLS1CR...FLS0tLS0K"
description = "Short description of x509 certificate"
group_id = "default"
id = "myUniqueCertId"
in_use = [
"list",
"of",
"configurations",
]
passphrase = "SecurityPassphrase"
priv_key = "dont-share-this-key"
}cert(String) Drag/drop or upload host certificate in PEM/Base64 format, or paste its contents heregroup_id(String) The consumer group to which this instance belongs. Defaults to 'default'.id(String) Unique ID to PATCHpriv_key(String, Sensitive)
ca(String) Optionally, drag/drop or upload all CA certificates in PEM/Base64 format. Or, paste certificate contents here. Certificates can be used for client and/or server authentication.description(String)in_use(List of String) List of configurations that reference this certificatepassphrase(String, Sensitive)
Import is supported using the following syntax:
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
import {
to = criblio_certificate.my_criblio_certificate
id = jsonencode({
group_id = "default"
id = "cert-001"
})
}The terraform import command can be used, for example:
terraform import criblio_certificate.my_criblio_certificate '{"group_id": "default", "id": "cert-001"}'