CycloneDX / cyclonedx-cli

CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions.
https://cyclonedx.org/
Apache License 2.0
317 stars 63 forks source link

XML signature with namespace prefix can not be verified #412

Closed andreas-hilti closed 6 days ago

andreas-hilti commented 2 weeks ago

If the signature uses a namespace prefix like ds:Signature, the cli fails to recongnize it.

For instance, based on this xml example https://cyclonedx.org/use-cases/#authenticity with an arbitrary key file, you get:

cyclonedx.exe verify all signed_bom.xml --key-file public.key
Loading public key...
Loading XML BOM...
Reading signatures...
No signatures found

even though this document contains a signature (i.e. it should either pass or fail the test).