Sign XML document (XADES-BES) with PKCS12 Certificate (.p12) in PHP

流过昼夜 提交于 2020-01-01 19:42:26

问题


I need to sign a XML document using a PKCS12 certificate (.p12 file) in PHP, the standard must be XADES-BES. Is this possible?


回答1:


It is most likely possible but equally likely has never been done with PHP code yet.

  • XML validation with XMLDSIG using XadES-BES algorithm

Existing PHP XML Digital Signature libraries for example are:

  • xmlseclibs
  • FraGoTe/xmldsig
  • Maks3w/xmldsig

It's probably a good bet to built on top of xmlseclibs.



来源:https://stackoverflow.com/questions/29173278/sign-xml-document-xades-bes-with-pkcs12-certificate-p12-in-php

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