Posts

  • 1-1 of 1
  • Swati Jain Gururani
    How to implement SHA256WITHRSA encryption in CPM15.0
    Topic posted October 7, 2019 by Swati Jain Gururani, tagged Service Console in B2C Service > Agent Desktop public
    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