Options

signing text string using certificate key and convert into base64 string to send over API.

How can I achieve this using in AL code? I have tried using encryption management codeunit but I could not find the function to get key from stored certificate.

1.Token String 1 := String 1 + String 2.
2.Generate message digest of the token string above using SHA256 hashing algorithm.
3.Sign the message digest using the digital certificate private key (pfx file/keystore). The digital signature algorithm will be the SHA256withRSA.
4.Convert the signed token above in step 3 to base64 encoding.

Any help would be greatly appreciated.

Thanks
Sign In or Register to comment.