azure::key-vault-certificate¶
Creates a key vault certificate.
Example¶
azure::key-vault-certificate vault-certificate-example
name: "certificate-example"
vault: $(azure::key-vault vault-example)
policy
key-properties
exportable: false
reuse-key: false
size: 2048
type: "RSA"
end
lifetime-action
action
type: "EmailContacts"
end
trigger
lifetime-percentage: 90
end
end
secret-properties
content-type: "application/x-pkcs12"
end
x509-properties
key-usage: ["digitalSignature", "keyEncipherment"]
subject: "CN=a1.com"
validity-in-months: 2
ekus: ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"]
end
attribute
"enabled" : true
"expires" : "2020-04-03T15:54:12.000Z"
end
issuer-parameter
name: "Self"
end
end
end
Attributes¶
Attribute | Description |
---|---|
name | The name of the certificate. (Required) |
vault | The key vault under which the certificate is going to be created. (Required) |
policy subresource | The policy config for the certificate. (Required)
|
tags map | Tags for the certificate. |
enabled | Enable or Disable the certificate for use. |
Outputs¶
Attribute | Description |
---|---|
version | The version of the certificate. |
id | The Id of the certificate. |
secret-id | The secret ID of the certificate. |