首页 > 解决方案 > How can I sign a document using PKCS7, CAdES, S/MIME (e-cpf / e-cnpj) to create a P7S file using javascript on the browser?

问题描述

I was able to read a p12 certificate file and, using the password, I was able to extract:

I found some solutions to sign a message or document using PKCS7, CAdES and S/MIME, but none of them produced a P7S file and the result is different than a proper P7S content (byte array), and that is what I understood is the correct file format to be used in E-CPF/E-CNPJ signed documents.

I would like to archive this using javascript on the browser, but any help or direction will be appreciated, thank you in advance :)

标签: javascriptx509pkipkcs#7electronic-signature

解决方案


看起来你是巴西人......检查这个 PHP 答案是否有帮助。

https://pt.stackoverflow.com/a/124876/6573


推荐阅读