Files
tonic/interop/data/cert-generator/ca.tf
T
Lucio Franco d9a481baef chore: Reorganize examples and interop crates (#180)
* chore: Reorganize examples and interop crates

* fix interop tests
2019-12-12 11:53:15 -05:00

27 lines
578 B
Terraform

resource "tls_private_key" "root" {
algorithm = "RSA"
rsa_bits = "2048"
}
resource "tls_self_signed_cert" "root" {
key_algorithm = tls_private_key.root.algorithm
private_key_pem = tls_private_key.root.private_key_pem
validity_period_hours = 87600
early_renewal_hours = 8760
is_ca_certificate = true
allowed_uses = ["cert_signing"]
subject {
common_name = "Tonic Testing CA"
organization = "Tokio"
organizational_unit = "Testing"
}
}
resource "local_file" "ca_cert" {
filename = "../ca.pem"
content = tls_self_signed_cert.root.cert_pem
}