BouncyCastle CMSSignedData from external signature and public key certificate

五迷三道 提交于 2021-01-28 11:42:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!