How to encrypt session key in Jmeter

2019-08-22 20:53发布

问题:

I have test run in which the server gives the session Id in response. I have to pass the encrypted session Id to subsequent requests. How do I RSA encrypt the extracted session Id?

My server gives the session Id for each login request I send. I am able to extract the session Id in Jmeter whith 'RegEx'. But when I pass the extracted value to subsequent requests the server rejects the requests because it is not RSA encrypted.RSA

Expected Result - Extracting the session Id from the server response, encrypt it & pass to subsequent requests.

Actual Result - Extracting the session Id from server response, passing it to subsequent requests without encryption thus failing the request.