Finish the addChainCertificate method. Added return value for PFX bag index.