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: Restore symmetric key failed: Failed to match tag: "objid" at: ["algorithmIdentifier"]["parameters"] #9

Open
hafizmabuzar opened this issue Nov 3, 2023 · 1 comment

Comments

@hafizmabuzar
Copy link

merchant private key (pem) file. below function:

const ASN1ECRfc5915Key = asn.define('Rfc5915Key', function() {
this.seq().obj(
this.key('version').int(),
this.key('privateKey').octstr(),
this.key('parameters').optional().explicit(0).objid({
'1 2 840 10045 3 1 7' : 'prime256v1',
'1 3 132 0 10' : 'secp256k1',
'1 3 132 0 34' : 'secp384r1',
'1 3 132 0 35' : 'secp521r1'
}),
this.key('publicKey').optional().explicit(1).bitstr()
);
});

@masudreza97
Copy link

Did you find any solution for this? I am stuck on the same issue as well. @hafizmabuzar

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

2 participants