node-opcua-pki 6.18.0 → 6.19.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.
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "node-opcua-pki",
3
- "version": "6.18.0",
3
+ "version": "6.19.0",
4
4
  "description": "PKI management for node-opcua",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "//main": "main/types are the pre-'exports' fallback, used only by resolvers that ignore the exports map. They are deliberately left as the CommonJS pair, matching \"type\": \"commonjs\", so that path behaves exactly as it did before - do not 'fix' one without the other.",
9
+ "//exports": "types are declared PER CONDITION on purpose. A single shared \"types\" key is resolved for BOTH import and require; since this package is \"type\": \"commonjs\", a bare .d.ts is a CommonJS module, so an ESM consumer got CJS types describing the real .mjs it imports. attw reports that as FalseCJS ('Masquerading as CJS'); it was present in 6.18.0. The .d.mts file already existed - tsup emits it from dts:true with format esm+cjs - the map simply never pointed at it.",
8
10
  "exports": {
9
11
  ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js"
13
- }
12
+ "import": {
13
+ "types": "./dist/index.d.mts",
14
+ "default": "./dist/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ }
20
+ },
21
+ "./package.json": "./package.json"
14
22
  },
15
23
  "bin": {
16
24
  "pki": "./dist/bin/pki.mjs",
@@ -45,8 +53,8 @@
45
53
  "chokidar": "4.0.3",
46
54
  "command-line-args": "^6.0.2",
47
55
  "command-line-usage": "^7.0.4",
48
- "node-opcua-crypto": "5.3.6",
49
- "yauzl": "^3.3.0"
56
+ "node-opcua-crypto": "5.4.0",
57
+ "yauzl": "^3.4.0"
50
58
  },
51
- "gitHead": "77bab4595c6d2877d8c020a5460e3502ea4a7806"
59
+ "gitHead": "3a43116bac242fa14bdc99ae1bdee1f4054fdb6b"
52
60
  }
package/readme.md CHANGED
@@ -4,7 +4,15 @@
4
4
  [![NPM version](https://img.shields.io/npm/v/node-opcua-pki)](https://www.npmjs.com/package/node-opcua-pki?activeTab=versions)
5
5
  [![install size](https://packagephobia.com/badge?p=node-opcua-pki)](https://packagephobia.com/result?p=node-opcua-pki)
6
6
 
7
- **PKI management for [node-opcua](https://node-opcua.github.io/)** — create and manage OPC UA certificates, Certificate Authorities, and Public Key Infrastructures.
7
+ **Production-grade PKI management for [OPC UA](https://node-opcua.github.io/)** — secure your industrial devices with proper certificates in minutes, not days.
8
+
9
+ ## Why node-opcua-pki?
10
+
11
+ - 🔒 **OPC UA compliant** — PKI directory structure per Part 6 §6.2.6, out of the box
12
+ - 🏗️ **Full CA lifecycle** — create, sign, revoke, renew certificates and CRLs
13
+ - 🖥️ **Cross-platform** — Windows, Linux, macOS, Alpine, with automatic OpenSSL detection
14
+ - 🧩 **CLI + API** — use from the command line or embed in your Node.js application
15
+ - 🛡️ **Battle-tested** — 12 years of continuous development, powering production OPC UA deployments worldwide
8
16
 
9
17
  ## Quick Start
10
18
 
@@ -23,12 +31,31 @@ pki --help
23
31
 
24
32
  This module requires **OpenSSL** or **LibreSSL**:
25
33
 
26
- | Platform | Installation |
27
- | ----------------- | ------------------------------------- |
28
- | **Windows** | Automatically downloaded at first run |
29
- | **Ubuntu/Debian** | `apt install openssl` |
30
- | **Alpine** | `apk add openssl` |
31
- | **macOS** | Pre-installed (LibreSSL) |
34
+ | Platform | Installation |
35
+ | ----------------- | ------------------------------------------------------ |
36
+ | **Windows** | Auto-detected from system PATH, or downloaded on first run |
37
+ | **Ubuntu/Debian** | `apt install openssl` |
38
+ | **Alpine** | `apk add openssl` |
39
+ | **macOS** | Pre-installed (LibreSSL) |
40
+
41
+ ## 🏢 Professional Support
42
+
43
+ node-opcua-pki is developed and maintained by [Sterfive](https://www.sterfive.com), the company behind the [node-opcua](https://github.com/node-opcua/node-opcua) ecosystem.
44
+
45
+ | | Community | Professional |
46
+ |---|:---:|:---:|
47
+ | Full documentation & CLI | ✅ | ✅ |
48
+ | Bug fixes & security patches | Best effort | **Priority SLA** |
49
+ | Security advisories | Public | **Early access** |
50
+ | Custom certificate workflows | — | ✅ |
51
+ | Dedicated consulting | — | ✅ |
52
+ | PKI architecture review | — | ✅ |
53
+
54
+ [![Professional Support](https://img.shields.io/static/v1?style=for-the-badge&label=Professional&message=Support&labelColor=blue&color=green&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ5MS41MiA0OTEuNTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ5MS41MiA0OTEuNTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBkPSJNNDg3Ljk4OSwzODkuNzU1bC05My4xMDktOTIuOTc2Yy00LjgxMy00LjgwNi0xMi42NDItNC42NzQtMTcuMjczLDAuMzA3Yy03LjE0OCw3LjY4OS0xNC42NCwxNS41NTQtMjEuNzMsMjIuNjM0ICAgIGMtMC4yNzEsMC4yNy0wLjUwMSwwLjQ5My0wLjc2MywwLjc1NUw0NjcuMyw0MzIuNTA0YzguOTEtMTAuNjE0LDE2LjY1Ny0yMC40MSwyMS43My0yNi45NyAgICBDNDkyLjcyLDQwMC43NjIsNDkyLjI1NywzOTQuMDE5LDQ4Ny45ODksMzg5Ljc1NXoiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCgk8Zz4NCgkJPHBhdGggZD0iTTMzNC4zLDMzNy42NjFjLTM0LjMwNCwxMS4zNzktNzcuNTYsMC40MTMtMTE0LjU1NC0yOS41NDJjLTQ5LjAyMS0zOS42OTMtNzUuOTcyLTEwMi42NDItNjUuODM4LTE1MC41OTNMMzcuNjM0LDQxLjQxOCAgICBDMTcuNjUzLDU5LjQyNCwwLDc4LjU0NSwwLDkwYzAsMTQxLjc1MSwyNjAuMzQ0LDQxNS44OTYsNDAxLjUwMyw0MDAuOTMxYzExLjI5Ni0xLjE5OCwzMC4xNzYtMTguNjUxLDQ4LjA2Mi0zOC4xNjdMMzM0LjMsMzM3LjY2MSAgICB6Ii8+DQoJPC9nPg0KPC9nPg0KPGc+DQoJPGc+DQoJCTxwYXRoIGQ9Ik0xOTMuODU0LDk2LjA0MUwxMDEuMjEzLDMuNTNjLTQuMjI1LTQuMjItMTAuODgyLTQuNzI0LTE1LjY2NC0xLjE0NWMtNi42NTQsNC45ODMtMTYuNjQ4LDEyLjY1MS0yNy40NTMsMjEuNDk4ICAgIGwxMTEuOTQ1LDExMS43ODVjMC4wNjEtMC4wNiwwLjExMS0wLjExMywwLjE3Mi0wLjE3NGM3LjIzOC03LjIyOCwxNS4zNTUtMTQuODg1LDIzLjI5MS0yMi4xNjcgICAgQzE5OC41MzQsMTA4LjcxMywxOTguNjg0LDEwMC44NjMsMTkzLjg1NCw5Ni4wNDF6Ii8+DQoJPC9nPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+)](https://support.sterfive.com)
55
+
56
+ Or [contact Sterfive](mailto:contact@sterfive.com) for dedicated consulting and enterprise needs.
57
+
58
+ ---
32
59
 
33
60
  ## CLI Commands
34
61
 
@@ -238,12 +265,6 @@ await intCA.installCACertificate(certFile); // Step 3
238
265
  - [RFC 5280 — X.509 PKI Certificate and CRL Profile](https://tools.ietf.org/html/rfc5280)
239
266
  - [Certification Path Validation](https://en.wikipedia.org/wiki/Certification_path_validation_algorithm)
240
267
 
241
- ## Support
242
-
243
- NodeOPCUA PKI is developed and maintained by [sterfive.com](https://www.sterfive.com).
244
-
245
- [![Professional Support](https://img.shields.io/static/v1?style=for-the-badge&label=Professional&message=Support&labelColor=blue&color=green&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ5MS41MiA0OTEuNTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ5MS41MiA0OTEuNTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBkPSJNNDg3Ljk4OSwzODkuNzU1bC05My4xMDktOTIuOTc2Yy00LjgxMy00LjgwNi0xMi42NDItNC42NzQtMTcuMjczLDAuMzA3Yy03LjE0OCw3LjY4OS0xNC42NCwxNS41NTQtMjEuNzMsMjIuNjM0ICAgIGMtMC4yNzEsMC4yNy0wLjUwMSwwLjQ5My0wLjc2MywwLjc1NUw0NjcuMyw0MzIuNTA0YzguOTEtMTAuNjE0LDE2LjY1Ny0yMC40MSwyMS43My0yNi45NyAgICBDNDkyLjcyLDQwMC43NjIsNDkyLjI1NywzOTQuMDE5LDQ4Ny45ODksMzg5Ljc1NXoiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCgk8Zz4NCgkJPHBhdGggZD0iTTMzNC4zLDMzNy42NjFjLTM0LjMwNCwxMS4zNzktNzcuNTYsMC40MTMtMTE0LjU1NC0yOS41NDJjLTQ5LjAyMS0zOS42OTMtNzUuOTcyL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