@daisy/ace-axe-runner-electron 1.2.3 → 1.2.6-alpha.3
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.
- package/lib/cli.js +22 -1
- package/lib/init.js +557 -253
- package/lib/selfsigned.js +31 -31
- package/package.json +5 -7
- package/src/cli.js +22 -1
- package/src/init.js +517 -200
- package/src/selfsigned.js +30 -30
package/src/selfsigned.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
+
// NO_HTTP_REMOVE
|
|
2
|
+
// const selfsigned = require('selfsigned');
|
|
3
|
+
// const { v4: uuidv4 } = require('uuid');
|
|
1
4
|
|
|
2
|
-
|
|
3
|
-
|
|
5
|
+
// function generateSelfSignedData() {
|
|
6
|
+
// return new Promise((resolve, reject) => {
|
|
7
|
+
// const opts = {
|
|
8
|
+
// algorithm: "sha256",
|
|
9
|
+
// // clientCertificate: true,
|
|
10
|
+
// // clientCertificateCN: "KB insecure client",
|
|
11
|
+
// days: 30,
|
|
12
|
+
// extensions: [{
|
|
13
|
+
// altNames: [{
|
|
14
|
+
// type: 2, // DNSName
|
|
15
|
+
// value: "localhost",
|
|
16
|
+
// }],
|
|
17
|
+
// name: "subjectAltName",
|
|
18
|
+
// }],
|
|
19
|
+
// };
|
|
20
|
+
// const rand = uuidv4();
|
|
21
|
+
// const attributes = [{ name: "commonName", value: "KB insecure server " + rand }];
|
|
4
22
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// clientCertificateCN: "KB insecure client",
|
|
11
|
-
days: 30,
|
|
12
|
-
extensions: [{
|
|
13
|
-
altNames: [{
|
|
14
|
-
type: 2, // DNSName
|
|
15
|
-
value: "localhost",
|
|
16
|
-
}],
|
|
17
|
-
name: "subjectAltName",
|
|
18
|
-
}],
|
|
19
|
-
};
|
|
20
|
-
const rand = uuidv4();
|
|
21
|
-
const attributes = [{ name: "commonName", value: "KB insecure server " + rand }];
|
|
23
|
+
// selfsigned.generate(attributes, opts, (err, keys) => {
|
|
24
|
+
// if (err) {
|
|
25
|
+
// reject(err);
|
|
26
|
+
// return;
|
|
27
|
+
// }
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
resolve(keys);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
module.exports = { generateSelfSignedData };
|
|
29
|
+
// resolve(keys);
|
|
30
|
+
// });
|
|
31
|
+
// });
|
|
32
|
+
// }
|
|
33
|
+
// module.exports = { generateSelfSignedData };
|