/terraform-tls-keypair

Terraform module.

Primary LanguageHCLMIT LicenseMIT

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
common_name Common name. Used only if request_cert is true. string "" no
country Country. Used only if request_cert is true. string "" no
dns_names List of DNS names for which a certificate is being requested. Used only if request_cert is true. list(string) [] no
ecdsa_curve When algorithm is ECDSA, the name of the elliptic curve to use. string "P384" no
ip_addresses List of IP addresses for which a certificate is being requested. Used only if request_cert is true. list(string) [] no
locality Locality. Used only if request_cert is true. string "" no
organization Organization. Used only if request_cert is true. string "" no
organizational_unit Organizational unit. Used only if request_cert is true. string "" no
postal_code Postal code. Used only if request_cert is true. string "" no
province Province. Used only if request_cert is true. string "" no
request_cert Generates certificate signing request. bool false no
rsa_bits When algorithm is RSA, the size of the generated RSA key in bits. number 4096 no
serial_number Serial number. Used only if request_cert is true. string "" no
street_address Street address. Used only if request_cert is true. list(string) [] no

Outputs

Name Description
algorithm This CA key algorithm.
cert_request_pem Certificate signing request in PEM format.
private_key_pem Private key in PEM format.
public_key_openssh Public key in OpenSSH format.
public_key_pem Public key in PEM format.