Agent Desktop

Get Involved. Join the Conversation.

Topic

    Swati Jain Gururani
    How to implement SHA256WITHRSA encryption in CPM
    Topic posted October 7, 2019 by Swati Jain Gururani, tagged Service Console 
    17 Views, 1 Comment
    Title:
    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

    Comment