Writes a certificate and its stored chain as a ds:X509Data, completed
through the Root, with the signer's certificate repeated after that Root
when the chain is longer than the certificate itself.
Parameters
certificatePem: any
the signing or encryption certificate
chainPem: any
its stored chain, leaf-first, without the Root
Returns string
<ds:X509Data>…</ds:X509Data>, the ds prefix the caller's
Writes a certificate and its stored chain as a
ds:X509Data, completed through the Root, with the signer's certificate repeated after that Root when the chain is longer than the certificate itself.