You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to implement SHA256WITHRSA encryption in CPM

Received Response
62
Views
1
Comments
edited Oct 7, 2019 9:46AM in Agent Desktop 1 comment

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!