Created
May 11, 2023 17:19
-
-
Save greyhoundforty/099575e40fcf74c26914c28518f04e30 to your computer and use it in GitHub Desktop.
Terraform TLS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module "pki" { | |
source = "particuleio/pki/tls" | |
version = "2.0.0" | |
ca = { | |
algorithm = "RSA" | |
ecdsa_curve = "secp384r1" | |
subject = { | |
common_name = "${var.basename} CA" | |
organization = "Org" | |
organizational_unit = "OU" | |
street_address = [ | |
"Street" | |
] | |
locality = "Locality" | |
province = "Province" | |
country = "Country" | |
postal_code = "Postal Code" | |
serial_number = "Serial Number" | |
} | |
validity_period_hours = 87600 | |
early_renewal_hours = 78840 | |
allowed_uses = [ | |
"cert_signing", | |
"crl_signing", | |
"code_signing", | |
"server_auth", | |
"client_auth", | |
"digital_signature", | |
"key_encipherment", | |
] | |
} | |
certificates = { | |
server = { | |
algorithm = "RSA" | |
ecdsa_curve = "secp384r1" | |
subject = { | |
common_name = "${var.basename} Server" | |
organization = "Org" | |
organizational_unit = "OU" | |
street_address = [ | |
"Street" | |
] | |
locality = "Locality" | |
province = "Province" | |
country = "Country" | |
postal_code = "Postal Code" | |
serial_number = "Serial Number" | |
} | |
validity_period_hours = 8740 | |
early_renewal_hours = 8040 | |
dns_names = [ | |
"vpn-server.vpn.ibm.com" | |
] | |
uris = [] | |
allowed_uses = [ | |
"server_auth", | |
"client_auth", | |
"digital_signature", | |
] | |
} | |
client = { | |
algorithm = "RSA" | |
ecdsa_curve = "secp384r1" | |
subject = { | |
common_name = "${var.basename} Client" | |
organization = "Org" | |
organizational_unit = "OU" | |
street_address = [ | |
"Street" | |
] | |
locality = "Locality" | |
province = "Province" | |
country = "Country" | |
postal_code = "Postal Code" | |
serial_number = "Serial Number" | |
} | |
validity_period_hours = 8740 | |
early_renewal_hours = 8040 | |
dns_names = [ | |
"vpn-client.vpn.ibm.com" | |
] | |
uris = [] | |
allowed_uses = [ | |
"server_auth", | |
"client_auth", | |
"digital_signature", | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment