node-keytool | basic wrapper for the java keytool | Wrapper library
kandi X-RAY | node-keytool Summary
kandi X-RAY | node-keytool Summary
basic wrapper for the java keytool
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-keytool
node-keytool Key Features
node-keytool Examples and Code Snippets
Community Discussions
Trending Discussions on node-keytool
QUESTION
In this scenario I'm getting token encrypted at origin with the one secret key in a JCEKS keystore. The token goes into a NodeJS server, where it should be unencrypted to use the data in there. As far as I understand, the private key to decrypt the token cannot be extracted from that format, so decrypting it simply using the crypto module won't do. I've played around with node-keytool, and gotten as far as listing the keys, based on the example here: https://github.com/FrankGrimm/node-keytool/blob/master/examples/listcontent.js.
However, I'm at a complete loss as how to use that module to decrypt the token. Any suggestions on how to do so, whether using that module or another, would be greatly appreciated.
...ANSWER
Answered 2017-Mar-30 at 10:31It seems like it can't be done, or at least not without a lot of work. Easier to write a decrypter in Java and then make a module in Node, like so:
const exec = require('child_process').exec; const fs = require('fs');
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-keytool
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page