I am attempting to use an AWS cloudHSM to sign a message that needs to be converted to DER to be verified by another application. The output signature file from AWS is binary and I am struggling to convert to DER.
I can verify the signature is correct in OpenSSL as it will accept the signature as binary
$ openssl dgst -sha256 -verify public.pem -signature signedMessage message
Verified OK
Struggling to find the correct procedure to convert to DER. I tried
openssl enc -base64 -in signedMessage
But verification fails.
Thanks