Verify signature usage

Viktor Dukhovni openssl-users at dukhovni.org
Mon Mar 21 18:47:40 UTC 2022


> On 21 Mar 2022, at 2:36 pm, buy <buy22 at netcasters.com> wrote:
> 
> It works great.  Instead of using an actual signature.file, is there
> a way to tell openssl to use a string instead?

Use "bash" or a similar shell that supports <(cmd ...) pseudo-files.

For a printable string signature:

	-signature <(printf "%s" "$sig")

If the signature is binary data, perhaps:

	-signature <(echo $sig | openssl base64 -A -d)

or whatever it takes to produce the desired content.

-- 
	Viktor.



More information about the openssl-users mailing list