keypair

4ops/keypair/tls

Terraform Module HCL TLS

Terraform module.

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

Keypair Creates pair of private and public key. Generates CSR. 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. Used only if request_cert is true. | list(string) | [ "digital_signature", "key_encipherment", "server_auth" ] | no | | common\_name | Common name. Used only if request_cert is true. | string | "" | no | | country | Country. Used only

Inputs (17)
NameTypeDescriptionDefault
allowed_useslist(string)List of keywords each describing a use that is permitted for the issued certific[ "digital_signature", "key_encipher
common_namestringCommon name. Used only if `request_cert` is `true`.""
organizationstringOrganization. Used only if `request_cert` is `true`.""
organizational_unitstringOrganizational unit. Used only if `request_cert` is `true`.""
postal_codestringPostal code. Used only if `request_cert` is `true`.""
localitystringLocality. Used only if `request_cert` is `true`.""
serial_numberstringSerial number. Used only if `request_cert` is `true`.""
dns_nameslist(string)List of DNS names for which a certificate is being requested. Used only if `requ[]
ip_addresseslist(string)List of IP addresses for which a certificate is being requested. Used only if `r[]
request_certboolGenerates certificate signing request.false
street_addresslist(string)Street address. Used only if `request_cert` is `true`.[]
provincestringProvince. Used only if `request_cert` is `true`.""
countrystringCountry. Used only if `request_cert` is `true`.""
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
daysnumberThe number of days after initial issuing that the certificate will become invali3650
Outputs (5)
private_key_pem — Private key in PEM format.
public_key_pem — Public key in PEM format.
public_key_openssh — Public key in OpenSSH format.
cert_request_pem — Certificate signing request in PEM format.
algorithm — This CA key algorithm.
Resources (2)
tls_cert_requesttls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud TLS
★ Stars0
Forks2
Total downloads788
Inputs17
Outputs5
Resources2
Examples2
LicenseMIT
Namespace4ops
Updated