Create the signing keys
-out "signingKey.crt" -days 365 -subj "/C=NL/ST=QC CA/L=Montreal/O=PacificSimplicity \
/OU=Dev/CN=Dev Signing Key"
Then sign the file with the following command
<inputFile>; cat <inputFile> <outputSigned>.sha256 > <outputSigned>.appended
To verify the file, execute the following command
-pubkey -noout) -signature <outputSigned>.sha256 <(head -c -512 <outputSigned>.appended)
If the contents have not changed, the output will output:
If the validation failed, the file doesn't match the signed value then the file is corrupt or modified/tampered.