certificates-generator
ish-xyz/certificates-generator/tls
Terraform Module
HCL
TLS
A Terraform module to generate TLS RSA certificates with a self provisioned CA
Install
module "certificates-generator" {
source = "ish-xyz/certificates-generator/tls"
version = "0.1.0"
}
README
Terraform Module certificates-generator A Terraform module to generate TLS RSA certificates with a self provisioned CA This terraform modules uses the tls_provider resources defined in -> https://www.terraform.io/docs/providers/tls/index.html The input variables are: key_filename cert_filename validity_period org cn location country ou The output is: It will create 2 files 1 certificate and 1 key. module_name.key -> private key * module_name.cert -> certificate
Inputs (12)
| Name | Type | Description | Default |
|---|---|---|---|
| cn | string | Certificate Common Name | required |
| country | string | Certificate Country | required |
| org | string | Certificate Organization | required |
| location | string | Certificate Location | required |
| ou | string | Certificate Organizational Unit | required |
| ca_cert | string | If default the module will create a new CA | "generated" |
| dns_names | list | List of ip, hostnames the certificate is for. | [] |
| key_filename | string | Absolute or relative path of the filename that will be generated | "attribute_only" |
| cert_filename | string | Absolute or relative path of the filename that will be generated | "attribute_only" |
| ca_key | string | If default the module will create a new CA | "generated" |
| validity_period | number | Validity Period in hours of both the CA and the certificate | 8760 |
| ip_addresses | list | List of ip_addresses for which the certificate will be valid (e.g. foo.example.c | [] |
Outputs (4)
keycertca_keyca_certResources (5)
local_filetls_cert_requesttls_locally_signed_certtls_private_keytls_self_signed_cert
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud TLS
Total downloads878
Inputs12
Outputs4
Resources5
Namespaceish-xyz
Updated