The workaround for this is split the one cert (over 7000) into two files
file1 and
file2.
Using two separate certificate files, store them in Credhub by:
credhub set -t certificate -n /test/ops-manager/bosh_root_cert1 -c bosh-root_cert1.cer
credhub set -t certificate -n /test/ops-manager/bosh_root_cert2 -c bosh-root_cert2.cer
Then in the credhub-interpolate-config step in Concourse pipeline, config file like below:
security_configuration:
generate_vm_passwords: true
opsmanager_root_ca_trusted_certs: true
trusted_certificates: |
((bosh_root_cert1.certificate))
((bosh_root_cert2.certificate))
After that, it will get interpolated correctly.