Browse Source

paypro: fix uncatchable error in browser paypro.

patch-2
Christopher Jeffrey 11 years ago
parent
commit
5c643e0be6
  1. 6
      lib/browser/PayPro.js

6
lib/browser/PayPro.js

@ -141,6 +141,12 @@ PayPro.prototype.x509Verify = function(returnTrust) {
// var npem = self._DERtoPEM(nder, 'CERTIFICATE');
var npem = KJUR.asn1.ASN1Util.getPEMStringFromHex(nder, 'CERTIFICATE');
//
// Get Next Certificate:
//
var ndata = new Buffer(nder, 'hex');
var nc = rfc3280.Certificate.decode(ndata, 'der');
//
// Get Public Key from next certificate (via KJUR because it's a mess):
//

Loading…
Cancel
Save