title: How do I repackage certificates into pkcs #7 certificate using bouncy castle?
body: <p>I have root, intermediate and end entity certificates and, I want to package it in pkcs # 7 format using bouncy castle.
  How can I do it?</p>