From a68c1123718922bfeab64d1822c5a0e25116b10d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 21 Jul 2014 10:19:15 -0700 Subject: [PATCH] paypro: fix DERtoPEM. --- lib/PayPro.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PayPro.js b/lib/PayPro.js index d547203..0b235d4 100644 --- a/lib/PayPro.js +++ b/lib/PayPro.js @@ -344,9 +344,9 @@ function wrapText(text, cols) { function DERtoPEM(der, type) { var type = type || 'UNKNOWN'; return '' - + '-----BEGIN ' + type + '-----' - + wrapText(der.toString('base64'), 64) - + '-----END ' + type + '-----'; + + '-----BEGIN ' + type + '-----\n' + + wrapText(der.toString('base64'), 64) + '\n' + + '-----END ' + type + '-----\n'; } module.exports = PayPro;