Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Something went wrong with algorithm 1.2.804.2.1.1.1.1.3.1.1 #16

Open
Stas-Buzunko opened this issue Jan 24, 2022 · 3 comments
Open

Comments

@Stas-Buzunko
Copy link

Stas-Buzunko commented Jan 24, 2022

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)

@nayruthCalla
Copy link

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

@lenchv
Copy link
Owner

lenchv commented Aug 22, 2022

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

@nayruthCalla
Copy link

ok, thank you very much for your answer @lenchv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants