jks-js
jks-js copied to clipboard
Error: Something went wrong with algorithm 1.2.804.2.1.1.1.1.3.1.1
const jks = require('jks-js'); const fs = require('fs')
const keystore = jks.toPem( fs.readFileSync('./key.jks'), 'xxxxxxxxxx' );
results in
Error: Something went wrong with algorithm 1.2.804.2.1.1.1.1.3.1.1. For more details see 'error.context' at Function.parseKey (.../node_modules/jks-js/lib/encryption/PKCS8Key.js:40:18)
hello, I also have the same error, were you able to solve the error? @Stas-Buzunko
This algorithm is too specific and related to the ukrainian goverment standards: https://zakon.rada.gov.ua/laws/show/z1399-12#Text
You have to consider the library for decryption something like: https://www.npmjs.com/package/jkurwa
ok, thank you very much for your answer @lenchv