使用 PHP 使用 .pfx 证书签署 XML 文件 [英] Sign a XML file with .pfx certificate using PHP
本文介绍了使用 PHP 使用 .pfx 证书签署 XML 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 XML 文档,我想使用 PHP 使用 pfx 证书对其进行签名.我怎么能这样做?是否存在某些库或开源代码,或者文档的哪一部分可以帮助我!非常感谢您的帮助,请原谅我的英语.
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.
推荐答案
以下是使用 pfx 文件签署 xml 文件的最小示例:
Here is an minimal example to sign a xml file with a pfx file:
~已删除~
查看这个库
- https://github.com/robrichards/xmlseclibs
- https://github.com/selective-php/xmldsig
- https://github.com/giansalex/xmldsig
- https://github.com/Maks3w/xmldsig
这篇关于使用 PHP 使用 .pfx 证书签署 XML 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文