libxmlsec1

XML security library for signing and encrypting XML documents

brewmacoslinux
Try with needOr install directly
Source

About

XML security library

Commands

xmlsec1

Examples

Sign an XML document with a private key$ xmlsec1 sign --privkey-pem private-key.pem document.xml
Verify an XML signature$ xmlsec1 verify --pubkey-pem public-key.pem signed-document.xml
Encrypt XML content with a certificate$ xmlsec1 encrypt --pubkey-cert-pem cert.pem --xml-data data.xml document.xml