node-opcua-pki 2.15.2 → 2.16.0

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.
Files changed (46) hide show
  1. package/.ignore +6 -6
  2. package/.prettierrc +3 -3
  3. package/LICENSE +21 -21
  4. package/bin/crypto_create_CA.js +4 -2
  5. package/bin/crypto_create_CA_config.example.js +18 -18
  6. package/bin/install_prerequisite.js +9 -9
  7. package/dist/crypto_create_CA.d.ts +2 -2
  8. package/dist/crypto_create_CA.js +849 -849
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.js +43 -39
  11. package/dist/index.js.map +1 -1
  12. package/dist/misc/applicationurn.d.ts +1 -1
  13. package/dist/misc/applicationurn.js +45 -45
  14. package/dist/misc/hostname.d.ts +8 -8
  15. package/dist/misc/hostname.js +102 -102
  16. package/dist/misc/install_prerequisite.d.ts +9 -9
  17. package/dist/misc/install_prerequisite.js +359 -359
  18. package/dist/misc/install_prerequisite.js.map +1 -1
  19. package/dist/misc/subject.d.ts +21 -21
  20. package/dist/misc/subject.js +90 -90
  21. package/dist/pki/certificate_authority.d.ts +61 -61
  22. package/dist/pki/certificate_authority.js +480 -480
  23. package/dist/pki/certificate_manager.d.ts +144 -144
  24. package/dist/pki/certificate_manager.js +890 -890
  25. package/dist/pki/common.d.ts +5 -5
  26. package/dist/pki/common.js +2 -2
  27. package/dist/pki/templates/ca_config_template.cnf.d.ts +2 -2
  28. package/dist/pki/templates/ca_config_template.cnf.js +129 -129
  29. package/dist/pki/templates/simple_config_template.cnf.d.ts +2 -2
  30. package/dist/pki/templates/simple_config_template.cnf.js +75 -75
  31. package/dist/pki/toolbox.d.ts +159 -159
  32. package/dist/pki/toolbox.js +669 -669
  33. package/dist/pki/toolbox_pfx.js +18 -18
  34. package/lib/crypto_create_CA.ts +1155 -1155
  35. package/lib/index.ts +27 -27
  36. package/lib/misc/applicationurn.ts +44 -44
  37. package/lib/misc/hostname.ts +89 -89
  38. package/lib/misc/install_prerequisite.ts +450 -450
  39. package/lib/misc/subject.ts +110 -110
  40. package/lib/pki/common.ts +5 -5
  41. package/lib/pki/templates/ca_config_template.cnf.ts +129 -129
  42. package/lib/pki/templates/simple_config_template.cnf.ts +75 -75
  43. package/lib/pki/toolbox_pfx.ts +19 -19
  44. package/package.json +89 -89
  45. package/readme.md +143 -143
  46. package/tsconfig.json +20 -20
package/.ignore CHANGED
@@ -1,6 +1,6 @@
1
- package-lock.json
2
- pnpm-lock.yaml
3
- *.xml
4
- dist/
5
- node_modules/
6
- CTT/
1
+ package-lock.json
2
+ pnpm-lock.yaml
3
+ *.xml
4
+ dist/
5
+ node_modules/
6
+ CTT/
package/.prettierrc CHANGED
@@ -1,4 +1,4 @@
1
- {
2
- "tabWidth": 4,
3
- "printWidth": 132
1
+ {
2
+ "tabWidth": 4,
3
+ "printWidth": 132
4
4
  }
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015-2020 Etienne Rossignon
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2020 Etienne Rossignon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -23,12 +23,14 @@
23
23
  // ---------------------------------------------------------------------------------------------------------------------
24
24
  "use strict";
25
25
 
26
- const updateNotifier = require("update-notifier");
26
+ // note: we remove use of update-notifier as it is ESM now and
27
+ // old version have reported vulnerabilities
28
+ //xx const updateNotifier = require("update-notifier");
27
29
  const pkg = require("../package.json");
28
30
 
29
31
  // eslint-disable-next-line no-undef
30
32
  require("../dist/crypto_create_CA.js").main(process.argv.splice(2), () => {
31
33
  /* empty */
32
- updateNotifier({pkg}).notify();
34
+ // xx updateNotifier({pkg}).notify();
33
35
 
34
36
  });
@@ -1,18 +1,18 @@
1
- "use strict";
2
- // ---------------------------------------------------------------------------------------------------------------------
3
- module.exports = {
4
-
5
- subject: {
6
- commonName: "NodeOPCUA-TEST",
7
- organization: "NodeOPCUA",
8
- organizationalUnit: "Unit",
9
- locality: "Paris",
10
- state: "IDF",
11
- country: "FR" // Two letters
12
- },
13
-
14
- validity: 365 * 15, // 15 years
15
-
16
- keySize: 2048 // default private key size : 2048, 3072 or 4096 (avoid 1024 too weak)
17
- };
18
-
1
+ "use strict";
2
+ // ---------------------------------------------------------------------------------------------------------------------
3
+ module.exports = {
4
+
5
+ subject: {
6
+ commonName: "NodeOPCUA-TEST",
7
+ organization: "NodeOPCUA",
8
+ organizationalUnit: "Unit",
9
+ locality: "Paris",
10
+ state: "IDF",
11
+ country: "FR" // Two letters
12
+ },
13
+
14
+ validity: 365 * 15, // 15 years
15
+
16
+ keySize: 2048 // default private key size : 2048, 3072 or 4096 (avoid 1024 too weak)
17
+ };
18
+
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- // eslint-disable-next-line @typescript-eslint/no-var-requires
4
- var install_prerequisite = require("../dist/lib/misc/install_prerequisite").install_prerequisite;
5
- install_prerequisite(function(err){
6
- if (err) {
7
- console.log("err = ",err.message);
8
- }
9
- });
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
4
+ var install_prerequisite = require("../dist/lib/misc/install_prerequisite").install_prerequisite;
5
+ install_prerequisite(function(err){
6
+ if (err) {
7
+ console.log("err = ",err.message);
8
+ }
9
+ });
@@ -1,2 +1,2 @@
1
- import { ErrorCallback } from "./pki/common";
2
- export declare function main(argumentsList: string, _done?: ErrorCallback): void;
1
+ import { ErrorCallback } from "./pki/common";
2
+ export declare function main(argumentsList: string, _done?: ErrorCallback): void;