问题
I have an X509Certificate, and a byte array that represents a raw signature created by a remote server (which has my private key). I'm trying to add this signature with PDFBox 2.0.18. For that, I need CMSSignedData object. How do I generate CmsSignedData without private key (only signature, public key, certificate)?
来源:https://stackoverflow.com/questions/60242213/bouncycastle-cmssigneddata-from-external-signature-and-public-key-certificate