apple-pay-decrypt icon indicating copy to clipboard operation
apple-pay-decrypt copied to clipboard

Error: Restore symmetric key failed: Failed to match tag: "objid" at: ["algorithmIdentifier"]["parameters"]

Open hafizmabuzar opened this issue 2 years ago • 1 comments

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() ); });

hafizmabuzar avatar Nov 03 '23 22:11 hafizmabuzar

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

masudreza97 avatar Nov 18 '23 09:11 masudreza97