-
Hi, Since in my Mirth Connect channel I need both to perform RSA encryption and read a private key from a certificate, it would be great if I was able to incorporate the jsrasign library (https://kjur.github.io/jsrsasign/), since it contains the functionality to do both. It should work since the javascript version of the library is ECMAScript 3. But how do I go about it so that it actually works? I've tried - and that may not be the best approach - to copy the the contents of the file jsrsasign-all-min.js in the channel's Deploy script, which gave me an error upon deploying, "ReferenceError: 'navigator' is not defined." How do I know which files to use and where do I place them? I'm using Mirth Connect 4.3.0. Any helpful suggestions will be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
A few things:
|
Beta Was this translation helpful? Give feedback.
https://github.com/pacmano1/Mirth-Snippets/blob/main/epicJWTusingNimbusJava.js
Maybe when you post here, why don't you ask the question about the thing you are really doing?
https://github.com/pacmano1/Mirth-Snippets/blob/main/epicJWTforBackend.js is the jrs one but it is slooow. I use the top one for all JWTs.
Also, you don't create a pub/priv key every time. Not sure what you are doing in your code.