paypro: fix DERtoPEM.
This commit is contained in:
parent
271ac2e9a5
commit
a68c112371
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue