Sign a XML file with .pfx certificate using PHP

微笑、不失礼 提交于 2019-12-23 23:09:30

问题


I have a XML document that I want sign with a pfx certificate using PHP. How could I do this? Does some library exist or open source code, or which part of the documentation could help me! Thanks a lot for your help and excuse me for my English.


回答1:


Here is an minimal example to sign a xml file with a pfx file:

~deleted~

Edit: Check out this libraries

  • https://github.com/robrichards/xmlseclibs
  • https://github.com/selective-php/xmldsig
  • https://github.com/giansalex/xmldsig
  • https://github.com/Maks3w/xmldsig


来源:https://stackoverflow.com/questions/51619078/sign-a-xml-file-with-pfx-certificate-using-php

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