I've got a requirement to encrypt a byte stream using a certificate/.jks file which I store in the Pega keystore. Is there any OOTB java method available to perform this action? Any suggestion would be highly appreciated.
Using the below java code I can get the certificate value in cert, but unable to figure out how to put encryption on an steam using this cert. any method?