node-opcua-pki
Advanced tools
Comparing version 4.17.0 to 4.18.0
@@ -7,6 +7,71 @@ ### Changelog | ||
#### [4.17.0](https://github.com/node-opcua/node-opcua-pki/compare/4.10.0...4.17.0) | ||
#### [4.18.0](https://github.com/node-opcua/node-opcua-pki/compare/4.17.0...4.18.0) | ||
- .adjust release-it.json [`094a11e`](https://github.com/node-opcua/node-opcua-pki/commit/094a11e430ce0285b595d47e63daa2deacc8a4d7) | ||
#### [4.17.0](https://github.com/node-opcua/node-opcua-pki/compare/4.16.0...4.17.0) | ||
> 14 December 2024 | ||
- add publish github action [`d71bd1f`](https://github.com/node-opcua/node-opcua-pki/commit/d71bd1fdc91180f439a6181f1ace2d25f1d57d74) | ||
#### [4.16.0](https://github.com/node-opcua/node-opcua-pki/compare/4.15.0...4.16.0) | ||
> 13 October 2024 | ||
- update packages [`486964e`](https://github.com/node-opcua/node-opcua-pki/commit/486964ec941ef1ca402270e5f4219ab27d60cca0) | ||
- Release 4.16.0 [`06e1675`](https://github.com/node-opcua/node-opcua-pki/commit/06e1675b87b3bbbe7e988714546891acee348396) | ||
#### [4.15.0](https://github.com/node-opcua/node-opcua-pki/compare/4.14.0...4.15.0) | ||
> 5 October 2024 | ||
- update packages - node-opcua-crypto@4.11.0 [`040be67`](https://github.com/node-opcua/node-opcua-pki/commit/040be67a70ff5fe3990135703fbde82679fbb14f) | ||
- Release 4.15.0 [`536259c`](https://github.com/node-opcua/node-opcua-pki/commit/536259c25f8e3410800ee5c267744f8e964ab49f) | ||
- update readme [`224bef0`](https://github.com/node-opcua/node-opcua-pki/commit/224bef0225b55a3a57dbf9bbe2e7e3ad93881b14) | ||
#### [4.14.0](https://github.com/node-opcua/node-opcua-pki/compare/4.13.1...4.14.0) | ||
> 24 September 2024 | ||
- update packages , use node-opcua-crypto@4.10.0 [`a63eaae`](https://github.com/node-opcua/node-opcua-pki/commit/a63eaae1dbe26afae81986fbc2de084b24a47e6d) | ||
- update chodikar [`176d4db`](https://github.com/node-opcua/node-opcua-pki/commit/176d4dbd49fa99ee0eddc958476d1dcfe417b01e) | ||
- Release 4.14.0 [`c8ec128`](https://github.com/node-opcua/node-opcua-pki/commit/c8ec128a356b246fe7e0e2aab7079320bf229137) | ||
#### [4.13.1](https://github.com/node-opcua/node-opcua-pki/compare/4.13.0...4.13.1) | ||
> 6 September 2024 | ||
- update packages [`9c67464`](https://github.com/node-opcua/node-opcua-pki/commit/9c6746448ae93872f0c740668f085ec6e303c257) | ||
- Release 4.13.1 [`8d2ad42`](https://github.com/node-opcua/node-opcua-pki/commit/8d2ad4268178f382142e7679835b55d1a4dba3f2) | ||
#### [4.13.0](https://github.com/node-opcua/node-opcua-pki/compare/4.12.0...4.13.0) | ||
> 6 September 2024 | ||
- fix .npmignore [`9c845d0`](https://github.com/node-opcua/node-opcua-pki/commit/9c845d0742fdf6ec37f134229f97b35faba9254e) | ||
- Release 4.13.0 [`e3ce258`](https://github.com/node-opcua/node-opcua-pki/commit/e3ce2586a95c13f6a65483c3b59ad92437d17922) | ||
#### [4.12.0](https://github.com/node-opcua/node-opcua-pki/compare/4.11.1...4.12.0) | ||
> 6 September 2024 | ||
- update packages [`7521f96`](https://github.com/node-opcua/node-opcua-pki/commit/7521f96bea08cb1ff1c3c0b92409f7e0bf973134) | ||
- Release 4.12.0 [`c86897d`](https://github.com/node-opcua/node-opcua-pki/commit/c86897db6510501f4a877f647ce1e65b04434254) | ||
#### [4.11.1](https://github.com/node-opcua/node-opcua-pki/compare/4.11.0...4.11.1) | ||
> 16 July 2024 | ||
- update ci/cd script [`1f116b1`](https://github.com/node-opcua/node-opcua-pki/commit/1f116b1dbf6012f84c65c9941a00126d77276c5d) | ||
- update packages [`73f5449`](https://github.com/node-opcua/node-opcua-pki/commit/73f5449d3e9947bad4cea3bb7027099589ac5cb9) | ||
- Release 4.11.1 [`e2b8847`](https://github.com/node-opcua/node-opcua-pki/commit/e2b88474b12ab9d816b5565eb44d99c6947fd5d2) | ||
#### [4.11.0](https://github.com/node-opcua/node-opcua-pki/compare/4.10.0...4.11.0) | ||
> 16 July 2024 | ||
- update packages [`1144708`](https://github.com/node-opcua/node-opcua-pki/commit/1144708665fe8387ca7966ce0bdae796ef6742c8) | ||
- Release 4.11.0 [`1e5cb0e`](https://github.com/node-opcua/node-opcua-pki/commit/1e5cb0ece61d87c9f0ded3a85cee1e56b2aaa33b) | ||
#### [4.10.0](https://github.com/node-opcua/node-opcua-pki/compare/4.9.0...4.10.0) | ||
@@ -385,10 +450,18 @@ | ||
#### [2.11.2](https://github.com/node-opcua/node-opcua-pki/compare/2.11.0...2.11.2) | ||
#### [2.11.2](https://github.com/node-opcua/node-opcua-pki/compare/2.11.1...2.11.2) | ||
> 19 July 2021 | ||
- update packages [`ba2d02e`](https://github.com/node-opcua/node-opcua-pki/commit/ba2d02eeb5c55a06e7d1af214528657da4be61df) | ||
- fixes issue#20 : updating to latest yargs syntax [`240bfb2`](https://github.com/node-opcua/node-opcua-pki/commit/240bfb201f9c42f102d926907d2fcab23dcdf218) | ||
- Release 2.11.2 [`6438ee3`](https://github.com/node-opcua/node-opcua-pki/commit/6438ee37e5a1ab986037a7d19e192a16ab71ce76) | ||
- Release 2.11.1 [`8c6a01a`](https://github.com/node-opcua/node-opcua-pki/commit/8c6a01a8e09334144f9071422467417fb8075ae4) | ||
#### [2.11.1](https://github.com/node-opcua/node-opcua-pki/compare/2.11.0...2.11.1) | ||
> 30 May 2021 | ||
- update packages [`ba2d02e`](https://github.com/node-opcua/node-opcua-pki/commit/ba2d02eeb5c55a06e7d1af214528657da4be61df) | ||
- Release 2.11.1 [`6c00217`](https://github.com/node-opcua/node-opcua-pki/commit/6c00217e710fbca97e278cdd5a9d0b815603c568) | ||
- update travis [`54d60e7`](https://github.com/node-opcua/node-opcua-pki/commit/54d60e77392a86680348581c16a9daa7dfd4b208) | ||
#### [2.11.0](https://github.com/node-opcua/node-opcua-pki/compare/2.10.0...2.11.0) | ||
@@ -395,0 +468,0 @@ |
@@ -40,3 +40,3 @@ "use strict"; | ||
// a portion of the hostname hash. | ||
hostnameHash = (0, crypto_1.createHash)("md5").update(hostname).digest("hex").substr(0, 16); | ||
hostnameHash = (0, crypto_1.createHash)("md5").update(hostname).digest("hex").substring(0, 16); | ||
} | ||
@@ -43,0 +43,0 @@ const applicationUrn = "urn:" + hostnameHash + ":" + suffix; |
@@ -30,3 +30,3 @@ "use strict"; | ||
} | ||
return str.substr(0, Math.min(str.length, length)); | ||
return str.substring(0, Math.min(str.length, length)); | ||
} | ||
@@ -33,0 +33,0 @@ function fqdn(callback) { |
@@ -108,3 +108,3 @@ "use strict"; | ||
function short(stringToShorten) { | ||
return stringToShorten.substr(0, 10); | ||
return stringToShorten.substring(0, 10); | ||
} | ||
@@ -115,3 +115,7 @@ function buildIdealCertificateName(certificate) { | ||
const commonName = (0, node_opcua_crypto_1.exploreCertificate)(certificate).tbsCertificate.subject.commonName || ""; | ||
return commonName + "[" + fingerprint + "]"; | ||
// commonName may contain invalid characters for a filename such as / or \ or | ||
// that we need to replace with a valid character. | ||
// replace / or \ with _ | ||
const sanitizedCommonName = commonName.replace(/[\/\\]/g, "_"); | ||
return sanitizedCommonName + "[" + fingerprint + "]"; | ||
} | ||
@@ -764,3 +768,3 @@ catch (err) { | ||
} | ||
(0, debug_1.debugLog)("_moveCertificate", fingerprint.substr(0, 10), "from", status, "to", newStatus); | ||
(0, debug_1.debugLog)("_moveCertificate", fingerprint.substring(0, 10), "from", status, "to", newStatus); | ||
(0, assert_1.default)(status === "rejected" || status === "trusted"); | ||
@@ -771,3 +775,3 @@ if (status !== newStatus) { | ||
if (!certificateSrc) { | ||
(0, debug_1.debugLog)(" cannot find certificate ", fingerprint.substr(0, 10), " in", this._thumbs, [status]); | ||
(0, debug_1.debugLog)(" cannot find certificate ", fingerprint.substring(0, 10), " in", this._thumbs, [status]); | ||
return callback(new Error("internal")); | ||
@@ -947,3 +951,3 @@ } | ||
(0, debug_1.debugLog)("ready"); | ||
(0, debug_1.debugLog)(Object.entries(index).map((kv) => kv[0].substr(0, 10))); | ||
(0, debug_1.debugLog)(Object.entries(index).map((kv) => kv[0].substring(0, 10))); | ||
}); | ||
@@ -950,0 +954,0 @@ } |
{ | ||
"name": "node-opcua-pki", | ||
"version": "4.17.0", | ||
"version": "4.18.0", | ||
"description": "PKI management for node-opcua", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
339383
5042