The Terraform cfssl provider implements functionality from CloudFlare's PKI/TLS toolkit.
This provider requires no configuration.
provider "cfssl" {}
resource "cfssl_self_signed_ca_cert" "foo" {
}
Generate a self-signed root CA certificate and private key. See CloudFlare's documentation.
The following arguments are supported:
csr_json
- (Required, string) The request as a JSON string.
The following attributes are exported in addition to the above configuration:
cert
- (string) The output CA certificatecsr
- (string) The output CSR in PEM formatkey
- (string) The output CA private key
Generate a certificate and private key signed by a CA. See CloudFlare's documentation.
The following arguments are supported:
csr_json
- (Required, string) The request as a JSON string.ca_cert
- (Required, string) The CA certificate.ca_key
- (Required, string) The CA private key.
The following attributes are exported in addition to the above configuration:
cert
- (string) The output ertificatecsr
- (string) The output CSR in PEM formatkey
- (string) The output private key
Generate a certificate and private key signed by a CA generated in the same run. CA clear text contents are removed from the state file See CloudFlare's documentation.
The following arguments are supported:
ca_csr_json
- (Required, string) The CA request as a JSON string.csr_json
- (Required, string) The server cert request as a JSON string.
The following attributes are exported in addition to the above configuration:
cert
- (string) The output ertificatecsr
- (string) The output CSR in PEM formatkey
- (string) The output private key