I need to verify a SHA256 RSA signed signature against a public key but I'm getting errors on every forge component I'm using. They all seem fairly straightforward (asking for signature inputs etc... which I'm getting from API headers) but I'm always met with different errors depending on the forge components I use.
I accept I have a complete lack of understanding with this but I can't seem to find any info about how to do this using outsystems.
The third party providing the signature have said the following -
'The jws-signature is not a jwt formatted signature but a SHA256 RSA signed signature. To generate the signature, we use the inbuilt node.js crypto function:https://nodejs.org/docs/latest-v18.x/api/crypto.html#signsignprivatekey-outputencoding
There is also an example of a verification of signature on the link above, however other languages will also have their own way to verify the signature.
JavaScript has the jsrsasign library: https://kjur.github.io/jsrsasign/api/symbols/RSAKey.html
C# has an example here: https://sjm.io/blog/rsa-file-signing/Java has the Signature class: https://docs.oracle.com/javase/7/docs/api/java/security/Signature.html'
Any advice would be great.