Skip to content

Instantly share code, notes, and snippets.

@stvdilln
Created January 31, 2020 15:20
Show Gist options
  • Save stvdilln/16218505475583041dad9ff0ccca56e0 to your computer and use it in GitHub Desktop.
Save stvdilln/16218505475583041dad9ff0ccca56e0 to your computer and use it in GitHub Desktop.
Installing the intermediate cert into Vault
# 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