Fixing the templates. this was due to an error where an assumption that a pfx certificate can only be 1 certificate. It can infact be a collection of certificates. It must be inspected as a collection and looped over as expected