Add support for exporting certificate chains to PKCS#12.