postman-util-lib icon indicating copy to clipboard operation
postman-util-lib copied to clipboard

pmlib.rs.KJUR.crypto.Signature returns undefined in pre request script

Open Tanvir1080 opened this issue 9 months ago • 0 comments

Hello, I'm trying to use this library for RSA256 asymmetric encryption and I've generated a generic private and public key pair, but when I do pmlib.rs.KJUR.crypto.Signature({"alg": "SHA256WithRsa"}); and then log it to verify it's created I get undefined and when I do sig.init(privateKey) i get an error saying "Cannot read properties of undefined (reading "init")"

Image

Tanvir1080 avatar Apr 16 '25 14:04 Tanvir1080