From 1a0de813fcd705dcfc202a0ba58678111f94de28 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 22 Aug 2014 13:21:02 -0700 Subject: [PATCH] paypro: fix browser kjur usage. --- lib/browser/PayPro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/PayPro.js b/lib/browser/PayPro.js index f27b879..781a6ab 100644 --- a/lib/browser/PayPro.js +++ b/lib/browser/PayPro.js @@ -119,7 +119,7 @@ PayPro.prototype.x509Verify = function(key) { // Create a To-Be-Signed Certificate to verify using asn1.js: // Fails at Issuer: var tbs = rfc3280.TBSCertificate.encode(c.tbsCertificate, 'der'); - jsrsaSig.updateHex(tbs); + jsrsaSig.updateHex(tbs.toString('hex')); return jsrsaSig.verify(sig); });