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