I’d like to use openssh to sign a file, and then pack
- the file
- the public key
- the signature hash
Into one self-contained file. In a container file like pem. Oh, and I understand that what will be signed and verifiable is the file, not the self-contained thingie.
Yes, I can. All I have to do to is
You can add info like this to all kinds of file types.
Your file can also be an archive itself, in witch case the problem is solved.
To verify the file, first extract (in the proper sense of the term : Read then erase) the hash and the key, then verify.