|
|
@ -146,6 +146,8 @@ PayPro.prototype.x509Verify = function(returnTrust) { |
|
|
|
//
|
|
|
|
var ndata = new Buffer(nder, 'hex'); |
|
|
|
var nc = rfc3280.Certificate.decode(ndata, 'der'); |
|
|
|
var npubKeyAlg = PayPro.getAlgorithm( |
|
|
|
nc.tbsCertificate.subjectPublicKeyInfo.algorithm.algorithm); |
|
|
|
|
|
|
|
//
|
|
|
|
// Get Public Key from next certificate (via KJUR because it's a mess):
|
|
|
@ -156,6 +158,7 @@ PayPro.prototype.x509Verify = function(returnTrust) { |
|
|
|
}); |
|
|
|
js.initVerifyByCertificatePEM(npem); |
|
|
|
var npubKey = js.pubKey; |
|
|
|
// XXX Somehow change the pubKey format to npubKeyAlg.
|
|
|
|
|
|
|
|
//
|
|
|
|
// Get Signature Value from current certificate:
|
|
|
|