node-opcua-pki 4.0.0-beta.8 → 4.0.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 (2) hide show
  1. package/package.json +8 -8
  2. package/readme.md +17 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-pki",
3
- "version": "4.0.0-beta.8",
3
+ "version": "4.0.0",
4
4
  "description": "PKI management for node-opcua",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -49,7 +49,7 @@
49
49
  "chokidar": "^3.5.3",
50
50
  "cli-table": "^0.3.11",
51
51
  "minimist": "^1.2.8",
52
- "node-opcua-crypto": "3.0.0-beta.3",
52
+ "node-opcua-crypto": "3.0.2",
53
53
  "progress": "^2.0.3",
54
54
  "rimraf": "3.0.2",
55
55
  "thenify": "^3.3.1",
@@ -63,22 +63,22 @@
63
63
  "@types/byline": "^4.2.33",
64
64
  "@types/cli-table": "^0.3.1",
65
65
  "@types/mocha": "^10.0.1",
66
- "@types/node": "^20.1.4",
66
+ "@types/node": "^20.2.5",
67
67
  "@types/node-dir": "0.0.34",
68
68
  "@types/progress": "^2.0.5",
69
69
  "@types/rimraf": "^3.0.2",
70
70
  "@types/sinon": "^10.0.15",
71
- "@types/underscore": "^1.11.4",
71
+ "@types/underscore": "^1.11.5",
72
72
  "@types/yargs": "^17.0.24",
73
73
  "@types/yauzl": "^2.10.0",
74
- "@typescript-eslint/eslint-plugin": "^5.59.5",
75
- "@typescript-eslint/parser": "^5.59.5",
76
- "eslint": "^8.40.0",
74
+ "@typescript-eslint/eslint-plugin": "^5.59.7",
75
+ "@typescript-eslint/parser": "^5.59.7",
76
+ "eslint": "^8.41.0",
77
77
  "mocha": "^10.2.0",
78
78
  "node-dir": "^0.1.17",
79
79
  "nyc": "^15.1.0",
80
80
  "should": "^13.2.3",
81
- "sinon": "^15.0.4",
81
+ "sinon": "^15.1.0",
82
82
  "source-map-support": "^0.5.21",
83
83
  "ts-node": "^10.9.1",
84
84
  "typescript": "^5.0.4"
package/readme.md CHANGED
@@ -1,10 +1,13 @@
1
1
  ### node-opcua-pki
2
2
 
3
- [![NPM download](https://img.shields.io/npm/dm/node-opcua-pki.svg)](https://www.npmtrends.com/node-opcua-pki)
3
+ [![NPM download](https://img.shields.io/npm/dm/node-opcua-pki.svg)](https://www.npmtrends.com/node-opcua-pki)
4
+ [![NPM version](https://img.shields.io/npm/v/node-opcua-pki)](https://www.npmjs.com/package/node-opcua-pki?activeTab=versions)
4
5
  [![Build Status](https://github.com/node-opcua/node-opcua-pki/actions/workflows/ci.yml/badge.svg)](https://github.com/node-opcua/node-opcua-pki/actions/workflows/ci.yml)
5
- [![Coverage Status](https://coveralls.io/repos/github/node-opcua/node-opcua-pki/badge.svg?branch=master)](https://coveralls.io/github/node-opcua/node-opcua-pki?branch=master)
6
- [![install size](https://packagephobia.com/badge?p=node-opcua-pki)](https://packagephobia.com/result?p=node-opcua-pki)
7
- [![FOSSA Status](https://app.fossa.com/api/projects/custom%2B20248%2Fgithub.com%2Fnode-opcua%2Fnode-opcua-pki.svg?type=shield)](https://app.fossa.com/projects/custom%2B20248%2Fgithub.com%2Fnode-opcua%2Fnode-opcua-pki?ref=badge_shield)
6
+ [![Coverage Status](https://coveralls.io/repos/github/node-opcua/node-opcua-pki/badge.svg?branch=master)](https://coveralls.io/github/node-opcua/node-opcua-pki?branch=master)
7
+ [![install size](https://packagephobia.com/badge?p=node-opcua-pki)](https://packagephobia.com/result?p=node-opcua-pki)
8
+ [![FOSSA Status](https://app.fossa.com/api/projects/custom%2B20248%2Fgithub.com%2Fnode-opcua%2Fnode-opcua-pki.svg?type=shield)](https://app.fossa.com/projects/custom%2B20248%2Fgithub.com%2Fnode-opcua%2Fnode-opcua-pki?ref=badge_shield)
9
+
10
+ <iframe src="https://github.com/sponsors/node-opcua/button" title="Sponsor node-opcua" height="32" width="114" style="border: 0; border-radius: 6px;"></iframe>
8
11
 
9
12
  ## Installation
10
13
 
@@ -170,6 +173,16 @@ Options:
170
173
  | --privateKey, -p | optional:the private key to use to generate certificate | |
171
174
  | --subject | the certificate subject ( for instance /C=FR/ST=Centre/L=Orleans/O=SomeOrganization/CN=Hello ) | |
172
175
 
176
+
177
+
178
+ ###### examples
179
+
180
+ * create a self-signed certificate
181
+
182
+ ```
183
+ npx node-opcua-pki certificate --dns=machine1.com,machine2.com --ip="192.1.2.3;192.3.4.5" -a 'urn:{hostname}:My-OPCUA-Server' --selfSigned -o my_self_signed_certificate.pem
184
+ ```
185
+
173
186
  #### References
174
187
 
175
188
  - https://www.entrust.com/wp-content/uploads/2013/05/pathvalidation_wp.pdf