问题
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