Allow user to decrypt Apple Pay token for use with payment processor (Stripe, Braintree, et al).
59
stars
26
forks
source link
Error: Restore symmetric key failed: Failed to match tag: "objid" at: ["algorithmIdentifier"]["parameters"] #9
Open
hafizmabuzar opened 1 year ago
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() ); });