Created
January 31, 2020 15:20
-
-
Save stvdilln/16218505475583041dad9ff0ccca56e0 to your computer and use it in GitHub Desktop.
Installing the intermediate cert into Vault
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
# Now that CSR is processed and we have a signed cert | |
# Put the Certificate, and The Root CA into the backend | |
# mount point. IF you do not put the CA in here, the | |
# chained_ca output of a generated cert will only be | |
# the intermedaite cert and not the whole chain. | |
resource "vault_pki_secret_backend_intermediate_set_signed" "intermediate" { | |
backend = vault_mount.pki_int.path | |
certificate = "${vault_pki_secret_backend_root_sign_intermediate.intermediate.certificate}\n${tls_self_signed_cert.ca_cert.cert_pem}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment