ca

4ops/ca/tls

Terraform Module HCL TLS

Terraform module

Install
module "ca" {
source = "4ops/ca/tls"
version = "1.0.0"
}
plain text: /constructs/tfmod-4ops-ca-tls/install.txt
⭐ Source on GitHub 📦 Registry page
README

Certificate authority Creates self-signed or externally signed certificate authority. Requirements | Name | Version | |------|---------| | terraform | >= 0.13 | | tls | ~> 3.0.0 | Providers | Name | Version | |------|---------| | tls | ~> 3.0.0 | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | algorithm | The name of the algorithm to use for the key. Currently-supported values are RSA and ECDSA. | string | "RSA" | no | | allowed\_uses | List of keywords each describing a use that is permitted for the issued certificate. Affects self-signed certificate only. | list(string) | [ "digital_signature", "key_encipherment", "cert_signing" ] | no | | common\_name | Common name. | string | "ca" | no | | days | The number of days after in

Inputs (9)
NameTypeDescriptionDefault
signed_certstringSigned cert request content.""
daysnumberThe number of days after initial issuing that the certificate will become invali3650
common_namestringCommon name."ca"
self_signedboolIf true, root CA will be created.true
allowed_useslist(string)List of keywords each describing a use that is permitted for the issued certific[ "digital_signature", "key_encipher
algorithmstringThe name of the algorithm to use for the key. Currently-supported values are `RS"RSA"
ecdsa_curvestringWhen algorithm is `ECDSA`, the name of the elliptic curve to use."P384"
rsa_bitsnumberWhen algorithm is `RSA`, the size of the generated RSA key in bits.4096
signmap(object({ cert_request_Map of certificate signing requests. The key of the item is not used.{}
Outputs (5)
cert_request — Certificate request for creating certificate externally. Content in PEM format.
signed — Signed certificates in PEM format.
algorithm — This CA key algorithm.
key — Private key in PEM format.
cert — Certificate in PEM format.
Resources (4)
tls_cert_requesttls_locally_signed_certtls_private_keytls_self_signed_cert
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud TLS
★ Stars1
Forks3
Total downloads782
Inputs9
Outputs5
Resources4
Examples2
LicenseMIT
Namespace4ops
Updated