paypro: fix DERtoPEM.
This commit is contained in:
parent
271ac2e9a5
commit
a68c112371
|
@ -344,9 +344,9 @@ function wrapText(text, cols) {
|
||||||
function DERtoPEM(der, type) {
|
function DERtoPEM(der, type) {
|
||||||
var type = type || 'UNKNOWN';
|
var type = type || 'UNKNOWN';
|
||||||
return ''
|
return ''
|
||||||
+ '-----BEGIN ' + type + '-----'
|
+ '-----BEGIN ' + type + '-----\n'
|
||||||
+ wrapText(der.toString('base64'), 64)
|
+ wrapText(der.toString('base64'), 64) + '\n'
|
||||||
+ '-----END ' + type + '-----';
|
+ '-----END ' + type + '-----\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = PayPro;
|
module.exports = PayPro;
|
||||||
|
|
Loading…
Reference in New Issue