PKCS#7 data payload unpacking with NodeJS?

帅比萌擦擦* 提交于 2019-12-04 07:56:20

A good option would be to use child_process to invoke openssl directly. I do that to validate iOS .mobileprovision files.

$ openssl smime -verify -in FILE -inform der 

The openssl command needs to be the apple-provided (not from ports or homebrew) so that it can find signing certificates and CA's in the keychain.

I haven't tried this myself, but the node-forge library contains an implementation of many cryptographic algorithms.

https://npmjs.org/package/node-forge#pkcs7

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