|
|
@ -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):
|
|
|
|
//
|
|
|
|