How to implement SHA256WITHRSA encryption in CPM
Content
I need to create JWT signature using algorithm sha256withrsaencryption. I am not able to find this method in Crypto library provided by OSVC for encryption and decryption. Is there any way to implement this? I am able to do it in php using openssl_sign method but openssl is not allowed to use in OSVC. Any help will be appreciable.
openssl_sign(
$jwtHeader.".".$jwtClaim,
$jwtSig,
$keyData['private_key'],
"sha256WithRSAEncryption"
);
Thanks in advance.
Version
1.3
Tagged:
2