Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Latest commit

 

History

History
77 lines (47 loc) · 2.32 KB

using.md

File metadata and controls

77 lines (47 loc) · 2.32 KB

cfssl Provider

The Terraform cfssl provider implements functionality from CloudFlare's PKI/TLS toolkit.

This provider requires no configuration.

Example Usage

provider "cfssl" {}

resource "cfssl_self_signed_ca_cert" "foo" {
}

Resources

cfssl_self_signed_ca_cert

Generate a self-signed root CA certificate and private key. See CloudFlare's documentation.

Argument Reference

The following arguments are supported:

  • csr_json - (Required, string) The request as a JSON string.

Attributes Reference

The following attributes are exported in addition to the above configuration:

  • cert - (string) The output CA certificate
  • csr - (string) The output CSR in PEM format
  • key - (string) The output CA private key

cfssl_cert

Generate a certificate and private key signed by a CA. See CloudFlare's documentation.

Argument Reference

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.

Attributes Reference

The following attributes are exported in addition to the above configuration:

  • cert - (string) The output ertificate
  • csr - (string) The output CSR in PEM format
  • key - (string) The output private key

cfssl_full_chain_cert

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.

Argument Reference

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.

Attributes Reference

The following attributes are exported in addition to the above configuration:

  • cert - (string) The output ertificate
  • csr - (string) The output CSR in PEM format
  • key - (string) The output private key