vault_pki_secret_backend_root_cert

Generates a new self-signed CA certificate and private keys for the PKI Secret Backend.

Example Usage

resource "vault_pki_secret_backend_root_cert" "test" {
  depends_on            = [vault_mount.pki]
  backend               = vault_mount.pki.path
  type                  = "internal"
  common_name           = "Root CA"
  ttl                   = "315360000"
  format                = "pem"
  private_key_format    = "der"
  key_type              = "rsa"
  key_bits              = 4096
  exclude_cn_from_sans  = true
  ou                    = "My OU"
  organization          = "My organization"
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the fields above, the following attributes are exported: