This is a repository providing a command line interface for the EU Digital Signature Service library. It can be used to sign XML documents using the XAdES formats used by EU trusted lists.
Build the project (requires Java 25):
mvn clean install -DskipTestsThe CLI strictly outputs the signed XML to Standard Out (stdout). This allows you to easily pipe or redirect the output directly into a new file.
java -jar target/wallet-dss-cli.jar sign <unsigned.xml> <private-key.pem> <certificate.pem> > <signed.xml>Example:
java -jar target/wallet-dss-cli.jar sign src/test/resources/test.xml src/test/resources/test-key.pem src/test/resources/test-cert.pem > test-signed.xml