I\'m extracting a CMS (aka PKCS#7) data from a signed PDF document, and I\'m trying to get the certificate chain from it based on this answer: https://stackoverflow.com/a/440482