jks-js icon indicating copy to clipboard operation
jks-js copied to clipboard

Error: Something went wrong with algorithm 1.2.804.2.1.1.1.1.3.1.1

Open Stas-Buzunko opened this issue 2 years ago • 3 comments

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)

Stas-Buzunko avatar Jan 24 '22 14:01 Stas-Buzunko

hello, I also have the same error, were you able to solve the error? @Stas-Buzunko

nayruthCalla avatar Aug 21 '22 19:08 nayruthCalla

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

lenchv avatar Aug 22 '22 07:08 lenchv

ok, thank you very much for your answer @lenchv

nayruthCalla avatar Aug 22 '22 20:08 nayruthCalla