apple-pay-decrypt
apple-pay-decrypt copied to clipboard
Error: Restore symmetric key failed: Failed to match tag: "objid" at: ["algorithmIdentifier"]["parameters"]
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() ); });
Did you find any solution for this? I am stuck on the same issue as well. @hafizmabuzar