class Capsium::Package::Signer

Signs and verifies Capsium packages with RSA-SHA256 digital signatures (05x-packaging “Digital Signature Using X.509”, 05x-security “Digital Signatures”).

Signed payload construction (deterministic, openssl-verifiable): the concatenation, in sorted package-relative path order, of the raw bytes of every file covered by the security.json integrity checksums — i.e. every package file except security.json and signature.sig. The signature itself is the raw RSA-SHA256 signature over that payload, stored in signature.sig. Equivalent openssl verification:

openssl dgst -sha256 -verify pubkey.pem -signature signature.sig payload.bin

where payload.bin is the concatenation described above.