I am following the “Build Certificate Authority (CA) in Vault with an offline Root” article, but when i reach the Step 4: “Generate ICA2 in vault” i create a Terraform file named, “test_org_ica2.tf” and when i do terraform apply, receive an error saying “signing certificate has a max path length of zero, and cannot issue further CA certificates”.
You should disregard this tutorial and follow the one that does not use certstrap, that is linked in the first paragraph of the page:
This learn tutorial builds on the Build Your Own Certificate Authority (CA) tutorial and demonstrates how to create the CA chain hierarchy with an offline root and online intermediate CAs in Vault.