pkcs12chain returns a PFX with private key and cert chain.
Comes from: https://github.com/PeculiarVentures/PKI.js/issues/104
util.js contains various conversion functions, the asn1js examples
all use inline conversions so no pre-made functions available.
formatPEM.js came from pkijs examples (examples_common.js).