Hey folks,
I'm trying to configure Vault's PKI secrets backend to issue certificates and the ca chain associated with them.
I have vault issuing certs, and if I use the ca.pem file that existed before vault then the certs issued by vault verify correctly. But the ca_chain returned with the certs vault issues doesn't contain the complete CA chain so the certificate doesn't verify when using that info.
I have a Root CA, then an Intermediate CA, and then the Intermediate Vault CA.
I've generate the Intermediate Vault CA outside of Vault, and have signed it with the Intermediate CA.
When I generated payload.json (from the Submit CA Information section of the PKI API docs) I was careful to include the Root CA and the Intermediate CA.
I've tried changing the ordering of the CAs in the payload.json file so that the Root CA came before Intermediate, and so that Intermediate came before Root but I haven't been able to get the ca_chain to include the complete CA chain yet. Does anyone know if there's a trick to this, or anything to watch out for when turning newlines into \n's?
Does the fact that ca_chain only contains the Intermediate Vault CA mean that it couldn't confirm that the Intermediate CA signed the Intermediate Vault CA?
There's no errors or any output at all when you submit payload.json to the API, so I'm unsure if I've mis-configured something or just misunderstood.
Thanks in advance!