keypair
4ops/keypair/tls
Terraform module.
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
| Name | Type | Description | Default |
|---|---|---|---|
| allowed_uses | list(string) | List of keywords each describing a use that is permitted for the issued certific | [
"digital_signature",
"key_encipher |
| common_name | string | Common name. Used only if `request_cert` is `true`. | "" |
| organization | string | Organization. Used only if `request_cert` is `true`. | "" |
| organizational_unit | string | Organizational unit. Used only if `request_cert` is `true`. | "" |
| postal_code | string | Postal code. Used only if `request_cert` is `true`. | "" |
| locality | string | Locality. Used only if `request_cert` is `true`. | "" |
| serial_number | string | Serial number. Used only if `request_cert` is `true`. | "" |
| dns_names | list(string) | List of DNS names for which a certificate is being requested. Used only if `requ | [] |
| ip_addresses | list(string) | List of IP addresses for which a certificate is being requested. Used only if `r | [] |
| request_cert | bool | Generates certificate signing request. | false |
| street_address | list(string) | Street address. Used only if `request_cert` is `true`. | [] |
| province | string | Province. Used only if `request_cert` is `true`. | "" |
| country | string | Country. Used only if `request_cert` is `true`. | "" |
| algorithm | string | The name of the algorithm to use for the key. Currently-supported values are `RS | "RSA" |
| ecdsa_curve | string | When algorithm is `ECDSA`, the name of the elliptic curve to use. | "P384" |
| rsa_bits | number | When algorithm is `RSA`, the size of the generated RSA key in bits. | 4096 |
| days | number | The number of days after initial issuing that the certificate will become invali | 3650 |
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.