Consul_template getting RootCa

Hi, I’m trying to get the full chain when generating a certificate with consul-template.
I have a Root CA, then an Intermediate CA, then the certificate.

When I use the following code I get only the cert + int_ca
{{- with secret “pk/issue/my_role” “” “ttl=24h” -}}
{{ .Data.certificate }}
{{ .Data.issuing_ca }}
{{ end }}

I know I can get my ca with this url:, but I didn’t find the consul_template syntax to add it in the template.

I’d like to make consul_template genrate a file containing the full chain (cert/int_ca/root_ca)
How can I do that?

Thank you.