node-opcua-server-configuration 2.67.0 → 2.68.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.
|
@@ -49,7 +49,7 @@ function certificateMatchesPrivateKeyPEM(certificate, privateKey) {
|
|
|
49
49
|
const initialBuffer = Buffer.from("Lorem Ipsum");
|
|
50
50
|
const encryptedBuffer = (0, node_opcua_crypto_1.publicEncrypt_long)(initialBuffer, certificate, 256, 11);
|
|
51
51
|
const decryptedBuffer = (0, node_opcua_crypto_1.privateDecrypt_long)(encryptedBuffer, privateKey, 256);
|
|
52
|
-
return initialBuffer.toString("
|
|
52
|
+
return initialBuffer.toString("utf-8") === decryptedBuffer.toString("utf-8");
|
|
53
53
|
}
|
|
54
54
|
function certificateMatchesPrivateKey(certificate, privateKey) {
|
|
55
55
|
const certificatePEM = (0, node_opcua_crypto_1.toPem)(certificate, "CERTIFICATE");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-server-configuration",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.68.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module -server",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc -b",
|
|
@@ -12,33 +12,33 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"memfs": "^3.4.1",
|
|
15
|
-
"node-opcua-address-space": "2.
|
|
15
|
+
"node-opcua-address-space": "2.68.0",
|
|
16
16
|
"node-opcua-assert": "2.66.0",
|
|
17
|
-
"node-opcua-basic-types": "2.
|
|
18
|
-
"node-opcua-certificate-manager": "2.
|
|
19
|
-
"node-opcua-client": "2.
|
|
17
|
+
"node-opcua-basic-types": "2.68.0",
|
|
18
|
+
"node-opcua-certificate-manager": "2.68.0",
|
|
19
|
+
"node-opcua-client": "2.68.0",
|
|
20
20
|
"node-opcua-constants": "2.67.0",
|
|
21
21
|
"node-opcua-crypto": "^1.10.0",
|
|
22
|
-
"node-opcua-data-model": "2.
|
|
23
|
-
"node-opcua-debug": "2.
|
|
24
|
-
"node-opcua-file-transfer": "2.
|
|
22
|
+
"node-opcua-data-model": "2.68.0",
|
|
23
|
+
"node-opcua-debug": "2.68.0",
|
|
24
|
+
"node-opcua-file-transfer": "2.68.0",
|
|
25
25
|
"node-opcua-hostname": "2.67.0",
|
|
26
|
-
"node-opcua-nodeid": "2.
|
|
26
|
+
"node-opcua-nodeid": "2.68.0",
|
|
27
27
|
"node-opcua-nodesets": "2.66.0",
|
|
28
28
|
"node-opcua-pki": "^2.15.4",
|
|
29
|
-
"node-opcua-pseudo-session": "2.
|
|
30
|
-
"node-opcua-secure-channel": "2.
|
|
31
|
-
"node-opcua-server": "2.
|
|
32
|
-
"node-opcua-service-translate-browse-path": "2.
|
|
29
|
+
"node-opcua-pseudo-session": "2.68.0",
|
|
30
|
+
"node-opcua-secure-channel": "2.68.0",
|
|
31
|
+
"node-opcua-server": "2.68.0",
|
|
32
|
+
"node-opcua-service-translate-browse-path": "2.68.0",
|
|
33
33
|
"node-opcua-status-code": "2.67.0",
|
|
34
|
-
"node-opcua-types": "2.
|
|
35
|
-
"node-opcua-variant": "2.
|
|
34
|
+
"node-opcua-types": "2.68.0",
|
|
35
|
+
"node-opcua-variant": "2.68.0",
|
|
36
36
|
"rimraf": "^3.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"node-opcua-binary-stream": "2.67.0",
|
|
40
|
-
"node-opcua-data-value": "2.
|
|
41
|
-
"node-opcua-leak-detector": "2.
|
|
40
|
+
"node-opcua-data-value": "2.68.0",
|
|
41
|
+
"node-opcua-leak-detector": "2.68.0",
|
|
42
42
|
"should": "^13.2.3",
|
|
43
43
|
"sinon": "^13.0.1"
|
|
44
44
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"internet of things"
|
|
58
58
|
],
|
|
59
59
|
"homepage": "http://node-opcua.github.io/",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "363b466440d0910acddd0cde2c37792ce4724d76"
|
|
61
61
|
}
|
|
@@ -61,7 +61,7 @@ function certificateMatchesPrivateKeyPEM(certificate: CertificatePEM, privateKey
|
|
|
61
61
|
const initialBuffer = Buffer.from("Lorem Ipsum");
|
|
62
62
|
const encryptedBuffer = publicEncrypt_long(initialBuffer, certificate, 256, 11);
|
|
63
63
|
const decryptedBuffer = privateDecrypt_long(encryptedBuffer, privateKey, 256);
|
|
64
|
-
return initialBuffer.toString("
|
|
64
|
+
return initialBuffer.toString("utf-8") === decryptedBuffer.toString("utf-8");
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export function certificateMatchesPrivateKey(certificate: Certificate, privateKey: PrivateKey): boolean {
|