Skip to content

A demonstration of how to setup vault to be a CA authority, using Terraform

License

Notifications You must be signed in to change notification settings

stvdilln/vault-ca-demo

Repository files navigation

vault-ca-demo

A demonstration of how to setup vault to be a CA authority, using Terraform. There is a blog post about how to use this repo.

The article I wrote and this repo need to be used together as there isn't an overview of how to use all the parts of this repo here. This repo demonstrates:

  • How to run vault locally with TLS options
  • How to Create a Self Signed cert in Terraform using the resource tls_self_signed_cert
  • How to use various vault_pki* resources:
    • vault_pki_secret_backend_config_urls
    • tls_self_signed_cert
    • tls_private_key
    • vault_pki_secret_backend_config_ca
    • vault_pki_secret_backend_intermediate_cert_request
    • vault_pki_secret_backend_root_sign_intermediate
    • vault_pki_secret_backend_intermediate_set_signed
  • How to use a Vault Certificate Authority to create Client and Server TLS certs.
  • How to bootstrap a Vault instance to make it its own Certificate Authority

Pull requests, especially for certificate fields welcome.

About

A demonstration of how to setup vault to be a CA authority, using Terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published