node-opcua-server-configuration 2.51.0 → 2.55.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/LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014-2021 Etienne Rossignon
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- 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, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2021 Etienne Rossignon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ 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, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- node-opcua-server-configuration
2
- ===============================
3
-
4
- an implementation of a OPC UA stack fully written in javascript and nodejs
5
-
6
-
7
- see http://node-opcua.github.io/
8
-
9
- an implementation of ServerConfiguration object inside node-opcua servers
10
-
11
-
12
-
1
+ node-opcua-server-configuration
2
+ ===============================
3
+
4
+ an implementation of a OPC UA stack fully written in javascript and nodejs
5
+
6
+
7
+ see http://node-opcua.github.io/
8
+
9
+ an implementation of ServerConfiguration object inside node-opcua servers
10
+
11
+
12
+
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * @module node-opcua-server-configuration
3
3
  */
4
- import { IAddressSpace, UAObject, UAFileType } from "node-opcua-address-space";
4
+ import { AddressSpace } from "node-opcua-address-space";
5
5
  import { PushCertificateManagerServerOptions } from "./server/push_certificate_manager_server_impl";
6
- export declare function promoteCertificateGroup(certificateGroup: UAObject): Promise<void>;
7
- export declare function promoteTrustList(trustList: UAFileType): Promise<void>;
8
- export declare function installPushCertificateManagement(addressSpace: IAddressSpace, options: PushCertificateManagerServerOptions): Promise<void>;
6
+ export declare function installPushCertificateManagement(addressSpace: AddressSpace, options: PushCertificateManagerServerOptions): void;
@@ -12,25 +12,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
12
12
  });
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.installPushCertificateManagement = exports.promoteTrustList = exports.promoteCertificateGroup = void 0;
15
+ exports.installPushCertificateManagement = void 0;
16
16
  const util_1 = require("util");
17
- const memfs_1 = require("memfs");
18
- const node_opcua_address_space_1 = require("node-opcua-address-space");
19
17
  const node_opcua_debug_1 = require("node-opcua-debug");
20
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
21
18
  const node_opcua_status_code_1 = require("node-opcua-status-code");
22
- const node_opcua_types_1 = require("node-opcua-types");
23
19
  const node_opcua_variant_1 = require("node-opcua-variant");
24
- const node_opcua_data_model_1 = require("node-opcua-data-model");
25
- const node_opcua_constants_1 = require("node-opcua-constants");
26
- const node_opcua_file_transfer_1 = require("node-opcua-file-transfer");
27
20
  const install_CertificateAlarm_1 = require("./server/install_CertificateAlarm");
28
21
  const push_certificate_manager_server_impl_1 = require("./server/push_certificate_manager_server_impl");
29
- const trust_list_server_1 = require("./server/trust_list_server");
30
- const node_opcua_crypto_1 = require("node-opcua-crypto");
31
22
  const debugLog = node_opcua_debug_1.make_debugLog("ServerConfiguration");
32
23
  const doDebug = node_opcua_debug_1.checkDebugFlag("ServerConfiguration");
33
- const warningLog = node_opcua_debug_1.make_warningLog("ServerConfiguration");
34
24
  const errorLog = debugLog;
35
25
  function hasExpectedUserAccess(context) {
36
26
  if (!context ||
@@ -38,11 +28,12 @@ function hasExpectedUserAccess(context) {
38
28
  !context.session.userIdentityToken) {
39
29
  return false;
40
30
  }
41
- return context.currentUserHasRole(node_opcua_address_space_1.WellKnownRoles.SecurityAdmin);
31
+ const currentUserRole = context.getCurrentUserRole();
32
+ return !!currentUserRole.match("SecurityAdmin");
42
33
  }
43
34
  function hasEncryptedChannel(context) {
44
- var _a, _b;
45
- return !!(((_b = (_a = context.session) === null || _a === void 0 ? void 0 : _a.channel) === null || _b === void 0 ? void 0 : _b.securityMode) === node_opcua_types_1.MessageSecurityMode.SignAndEncrypt);
35
+ // todo
36
+ return true;
46
37
  }
47
38
  function expected(variant, dataType, variantArrayType) {
48
39
  if (!variant) {
@@ -73,23 +64,18 @@ function _createSigningRequest(inputArguments, context) {
73
64
  const regeneratePrivateKeyVariant = inputArguments[3];
74
65
  const nonceVariant = inputArguments[4];
75
66
  if (!expected(certificateGroupIdVariant, node_opcua_variant_1.DataType.NodeId, node_opcua_variant_1.VariantArrayType.Scalar)) {
76
- warningLog("epecting an NodeId for certificateGroupId - 0");
77
67
  return { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidArgument };
78
68
  }
79
69
  if (!expected(certificateTypeIdVariant, node_opcua_variant_1.DataType.NodeId, node_opcua_variant_1.VariantArrayType.Scalar)) {
80
- warningLog("epecting an NodeId for certificateTypeId - 1");
81
70
  return { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidArgument };
82
71
  }
83
72
  if (!expected(subjectNameVariant, node_opcua_variant_1.DataType.String, node_opcua_variant_1.VariantArrayType.Scalar)) {
84
- warningLog("epecting an String for subjectName - 2");
85
73
  return { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidArgument };
86
74
  }
87
75
  if (!expected(regeneratePrivateKeyVariant, node_opcua_variant_1.DataType.Boolean, node_opcua_variant_1.VariantArrayType.Scalar)) {
88
- warningLog("epecting an Boolean for regeneratePrivateKey - 3");
89
76
  return { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidArgument };
90
77
  }
91
- if (!expected(nonceVariant, node_opcua_variant_1.DataType.ByteString, node_opcua_variant_1.VariantArrayType.Scalar)) {
92
- warningLog("epecting an ByteString for nonceVariant - 4");
78
+ if (!expected(regeneratePrivateKeyVariant, node_opcua_variant_1.DataType.Boolean, node_opcua_variant_1.VariantArrayType.Scalar)) {
93
79
  return { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidArgument };
94
80
  }
95
81
  if (!hasEncryptedChannel(context)) {
@@ -210,279 +196,26 @@ function _applyChanges(inputArguments, context) {
210
196
  return { statusCode };
211
197
  });
212
198
  }
213
- function trustListIsAlreadyOpened(trustList) {
214
- return false; // to do...
215
- }
216
- // in TrustList
217
- function _addCertificate(inputArguments, context) {
218
- return __awaiter(this, void 0, void 0, function* () {
219
- // If the Certificate is issued by a CA then the Client shall provide the entire
220
- // chain in the certificate argument (see OPC 10000-6). After validating the Certificate,
221
- // the Server shall add the CA Certificates to the Issuers list in the Trust List.
222
- // The leaf Certificate is added to the list specified by the isTrustedCertificate argument.
223
- if (!hasEncryptedChannel(context)) {
224
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadSecurityModeInsufficient };
225
- }
226
- if (!hasExpectedUserAccess(context)) {
227
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadUserAccessDenied };
228
- }
229
- const trustList = context.object;
230
- const cm = trustList.$$certificateManager || null;
231
- // The trust list must have been bound
232
- if (!cm) {
233
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadInternalError };
234
- }
235
- // This method cannot be called if the file object is open.
236
- if (!trustListIsAlreadyOpened(trustList)) {
237
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidState };
238
- }
239
- const certificateChain = inputArguments[0].value;
240
- const isTrustedCertificate = inputArguments[1].value;
241
- const certificates = node_opcua_crypto_1.split_der(certificateChain);
242
- // validate certificate first
243
- const r = yield node_opcua_crypto_1.verifyCertificateChain(certificates);
244
- if (r.status !== "Good") {
245
- warningLog("Invalid certificate ", r.status, r.reason);
246
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadCertificateInvalid };
247
- }
248
- for (let i = 0; i < certificates.length; i++) {
249
- const certificate = certificates[i];
250
- if (i === certificates.length - 1 && isTrustedCertificate) {
251
- yield cm.trustCertificate(certificate);
252
- }
253
- else {
254
- yield cm.addIssuer(certificate);
255
- }
256
- }
257
- warningLog("_addCertificate - done isTrustedCertificate= ", isTrustedCertificate);
258
- return { statusCode: node_opcua_status_code_1.StatusCodes.Good };
259
- });
260
- }
261
- function _removeCertificate(inputArguments, context) {
262
- return __awaiter(this, void 0, void 0, function* () {
263
- if (!hasEncryptedChannel(context)) {
264
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadSecurityModeInsufficient };
265
- }
266
- if (!hasExpectedUserAccess(context)) {
267
- return { statusCode: node_opcua_status_code_1.StatusCodes.BadUserAccessDenied };
268
- }
269
- return { statusCode: node_opcua_status_code_1.StatusCodes.Good };
270
- });
271
- }
272
- let counter = 0;
273
- function bindCertificateManager(addressSpace, options) {
199
+ function installPushCertificateManagement(addressSpace, options) {
274
200
  const serverConfiguration = addressSpace.rootFolder.objects.server.serverConfiguration;
275
- const defaultApplicationGroup = serverConfiguration.certificateGroups.getComponentByName("DefaultApplicationGroup");
276
- if (defaultApplicationGroup) {
277
- const trustList = defaultApplicationGroup.getComponentByName("TrustList");
278
- if (trustList) {
279
- trustList.$$certificateManager = options.applicationGroup;
280
- }
281
- }
282
- const defaultTokenGroup = serverConfiguration.certificateGroups.getComponentByName("DefaultUserTokenGroup");
283
- if (defaultTokenGroup) {
284
- const trustList = defaultTokenGroup.getComponentByName("TrustList");
285
- if (trustList) {
286
- trustList.$$certificateManager = options.userTokenGroup;
287
- }
201
+ const serverConfigurationPriv = serverConfiguration;
202
+ if (serverConfigurationPriv.$pushCertificateManager) {
203
+ return;
204
+ throw new Error("PushCertificateManagement has already been installed");
288
205
  }
289
- }
290
- const rp1 = [
291
- {
292
- roleId: node_opcua_address_space_1.WellKnownRoles.Anonymous,
293
- permissions: node_opcua_types_1.PermissionType.Browse,
294
- },
295
- {
296
- roleId: node_opcua_address_space_1.WellKnownRoles.AuthenticatedUser,
297
- permissions: node_opcua_types_1.PermissionType.Browse,
298
- },
299
- {
300
- roleId: node_opcua_address_space_1.WellKnownRoles.ConfigureAdmin,
301
- permissions: node_opcua_data_model_1.makePermissionFlag("Browse | ReadRolePermissions | Read | ReadHistory | ReceiveEvents")
302
- },
303
- {
304
- roleId: node_opcua_address_space_1.WellKnownRoles.SecurityAdmin,
305
- permissions: node_opcua_data_model_1.allPermissions
306
- },
307
- ];
308
- const rp2 = [
309
- {
310
- roleId: node_opcua_address_space_1.WellKnownRoles.SecurityAdmin,
311
- permissions: node_opcua_data_model_1.allPermissions
312
- },
313
- ];
314
- function _closeAndUpdate(inputArguments, context) {
315
- return __awaiter(this, void 0, void 0, function* () {
316
- return { statusCode: node_opcua_status_code_1.StatusCodes.Good };
317
- });
318
- }
319
- function promoteCertificateGroup(certificateGroup) {
320
- return __awaiter(this, void 0, void 0, function* () {
321
- const trustList = certificateGroup.getChildByName("TrustList");
322
- if (trustList) {
323
- promoteTrustList(trustList);
324
- }
325
- });
326
- }
327
- exports.promoteCertificateGroup = promoteCertificateGroup;
328
- function promoteTrustList(trustList) {
329
- return __awaiter(this, void 0, void 0, function* () {
330
- const filename = `/tmpFile${counter}`;
331
- counter += 1;
332
- node_opcua_file_transfer_1.installFileType(trustList, { filename, fileSystem: memfs_1.fs });
333
- // we need to change the default open method
334
- const open = trustList.getChildByName("Open");
335
- const _open_asyncExecutionFunction = open._asyncExecutionFunction;
336
- // ... and bind the extended methods as well.
337
- const closeAndUpdate = trustList.getChildByName("CloseAndUpdate");
338
- const openWithMasks = trustList.getChildByName("OpenWithMasks");
339
- const addCertificate = trustList.getChildByName("AddCertificate");
340
- const removeCertificate = trustList.getChildByName("RemoveCertificate");
341
- function _openTrustList(trustMask, inputArgs, context, callback) {
342
- // if (trustList.isOpened) {
343
- // warningLog("TrustList is already opened")
344
- // return { statusCode: StatusCodes.BadInvalidState};
345
- // }
346
- // The Open Method shall not support modes other than Read (0x01) and the Write + EraseExisting (0x06).
347
- const openMask = inputArgs[0].value;
348
- if (openMask !== node_opcua_file_transfer_1.OpenFileMode.Read && openMask !== node_opcua_file_transfer_1.OpenFileMode.WriteEraseExisting) {
349
- return callback(null, { statusCode: node_opcua_status_code_1.StatusCodes.BadInvalidArgument });
350
- }
351
- // possible statusCode: Bad_UserAccessDenied The current user does not have the rights required.
352
- const certificateManager = trustList.$$certificateManager || undefined;
353
- if (certificateManager) {
354
- trust_list_server_1.writeTrustList(memfs_1.fs, filename, trustMask, certificateManager).then(() => {
355
- // trustList.isOpened = true;
356
- _open_asyncExecutionFunction.call(this, inputArgs, context, callback);
357
- }).catch((err) => {
358
- errorLog(err);
359
- callback(err, { statusCode: node_opcua_status_code_1.StatusCodes.BadInternalError });
360
- });
361
- }
362
- else {
363
- warningLog("certificateManager is not defined on trustlist do something to update the document before we open it");
364
- return _open_asyncExecutionFunction.call(this, inputArgs, context, callback);
365
- }
366
- }
367
- function _openCallback(inputArgs, context, callback) {
368
- _openTrustList.call(this, trust_list_server_1.TrustListMasks.All, inputArgs, context, callback);
369
- }
370
- open.bindMethod(_openCallback);
371
- function _openWithMaskCallback(inputArgs, context, callback) {
372
- const trustListMask = inputArgs[0].value;
373
- inputArgs[0] = new node_opcua_variant_1.Variant({ dataType: node_opcua_variant_1.DataType.Byte, value: node_opcua_file_transfer_1.OpenFileMode.Read });
374
- _openTrustList.call(this, trustListMask, inputArgs, context, callback);
375
- }
376
- // The OpenWithMasks Method allows a Client to read only the portion of the Trust List.
377
- // This Method can only be used to read the Trust List.
378
- openWithMasks.bindMethod(_openWithMaskCallback);
379
- addCertificate.bindMethod(util_1.callbackify(_addCertificate));
380
- removeCertificate.bindMethod(util_1.callbackify(_removeCertificate));
381
- closeAndUpdate === null || closeAndUpdate === void 0 ? void 0 : closeAndUpdate.bindMethod(util_1.callbackify(_closeAndUpdate));
382
- function install_method_handle_on_TrustListType(addressSpace) {
383
- const fileType = addressSpace.findObjectType("TrustListType");
384
- if (!fileType || fileType.addCertificate.isBound()) {
385
- return;
386
- }
387
- fileType.open && fileType.open.bindMethod(_openCallback);
388
- fileType.addCertificate.bindMethod(util_1.callbackify(_addCertificate));
389
- fileType.removeCertificate.bindMethod(util_1.callbackify(_removeCertificate));
390
- fileType.openWithMasks && fileType.openWithMasks.bindMethod(_openWithMaskCallback);
391
- fileType.closeAndUpdate && fileType.closeAndUpdate.bindMethod(util_1.callbackify(_closeAndUpdate));
392
- }
393
- install_method_handle_on_TrustListType(trustList.addressSpace);
206
+ serverConfigurationPriv.$pushCertificateManager = new push_certificate_manager_server_impl_1.PushCertificateManagerServerImpl(options);
207
+ serverConfiguration.supportedPrivateKeyFormats.setValueFromSource({
208
+ arrayType: node_opcua_variant_1.VariantArrayType.Array,
209
+ dataType: node_opcua_variant_1.DataType.String,
210
+ value: ["PEM"]
394
211
  });
395
- }
396
- exports.promoteTrustList = promoteTrustList;
397
- function installAccessRestrictionOnTrustList(trustList) {
398
- for (const m of trustList.getComponents()) {
399
- m === null || m === void 0 ? void 0 : m.setRolePermissions(rp2);
400
- m === null || m === void 0 ? void 0 : m.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.SigningRequired | node_opcua_data_model_1.AccessRestrictionsFlag.EncryptionRequired);
212
+ serverConfiguration.createSigningRequest.bindMethod(util_1.callbackify(_createSigningRequest));
213
+ serverConfiguration.updateCertificate.bindMethod(util_1.callbackify(_updateCertificate));
214
+ serverConfiguration.getRejectedList.bindMethod(util_1.callbackify(_getRejectedList));
215
+ if (serverConfiguration.applyChanges) {
216
+ serverConfiguration.applyChanges.bindMethod(util_1.callbackify(_applyChanges));
401
217
  }
402
- }
403
- function installPushCertificateManagement(addressSpace, options) {
404
- return __awaiter(this, void 0, void 0, function* () {
405
- const serverConfiguration = addressSpace.rootFolder.objects.server.serverConfiguration;
406
- const serverConfigurationPriv = serverConfiguration;
407
- if (serverConfigurationPriv.$pushCertificateManager) {
408
- warningLog("PushCertificateManagement has already been installed");
409
- return;
410
- }
411
- function installAccessRestrictions(serverConfiguration) {
412
- serverConfiguration.setRolePermissions(rp1);
413
- serverConfiguration.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.None);
414
- const applyName = serverConfiguration.getMethodByName("ApplyChanges");
415
- applyName === null || applyName === void 0 ? void 0 : applyName.setRolePermissions(rp2);
416
- applyName === null || applyName === void 0 ? void 0 : applyName.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.SigningRequired | node_opcua_data_model_1.AccessRestrictionsFlag.EncryptionRequired);
417
- const createSigningRequest = serverConfiguration.getMethodByName("CreateSigningRequest");
418
- createSigningRequest === null || createSigningRequest === void 0 ? void 0 : createSigningRequest.setRolePermissions(rp2);
419
- createSigningRequest === null || createSigningRequest === void 0 ? void 0 : createSigningRequest.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.SigningRequired | node_opcua_data_model_1.AccessRestrictionsFlag.EncryptionRequired);
420
- const getRejectedList = serverConfiguration.getMethodByName("GetRejectedList");
421
- getRejectedList === null || getRejectedList === void 0 ? void 0 : getRejectedList.setRolePermissions(rp2);
422
- getRejectedList === null || getRejectedList === void 0 ? void 0 : getRejectedList.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.SigningRequired | node_opcua_data_model_1.AccessRestrictionsFlag.EncryptionRequired);
423
- const updateCertficate = serverConfiguration.getMethodByName("UpdateCertficate");
424
- updateCertficate === null || updateCertficate === void 0 ? void 0 : updateCertficate.setRolePermissions(rp2);
425
- updateCertficate === null || updateCertficate === void 0 ? void 0 : updateCertficate.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.SigningRequired | node_opcua_data_model_1.AccessRestrictionsFlag.EncryptionRequired);
426
- const certificateGroups = serverConfiguration.getComponentByName("CertificateGroups");
427
- certificateGroups.setRolePermissions(rp1);
428
- certificateGroups.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.None);
429
- function installAccessRestrictionOnGroup(group) {
430
- const trustList = group.getComponentByName("TrustList");
431
- if (trustList) {
432
- installAccessRestrictionOnTrustList(trustList);
433
- }
434
- }
435
- for (const group of certificateGroups.getComponents()) {
436
- group === null || group === void 0 ? void 0 : group.setRolePermissions(rp2);
437
- group === null || group === void 0 ? void 0 : group.setAccessRestrictions(node_opcua_data_model_1.AccessRestrictionsFlag.SigningRequired | node_opcua_data_model_1.AccessRestrictionsFlag.EncryptionRequired);
438
- if (group.nodeClass === node_opcua_data_model_1.NodeClass.Object) {
439
- installAccessRestrictionOnGroup(group);
440
- }
441
- }
442
- }
443
- installAccessRestrictions(serverConfiguration);
444
- serverConfigurationPriv.$pushCertificateManager = new push_certificate_manager_server_impl_1.PushCertificateManagerServerImpl(options);
445
- serverConfiguration.supportedPrivateKeyFormats.setValueFromSource({
446
- arrayType: node_opcua_variant_1.VariantArrayType.Array,
447
- dataType: node_opcua_variant_1.DataType.String,
448
- value: ["PEM"]
449
- });
450
- function install_method_handle_on_type(addressSpace) {
451
- const serverConfigurationType = addressSpace.findObjectType("ServerConfigurationType");
452
- if (serverConfigurationType.createSigningRequest.isBound()) {
453
- return;
454
- }
455
- serverConfigurationType.createSigningRequest.bindMethod(util_1.callbackify(_createSigningRequest));
456
- serverConfigurationType.getRejectedList.bindMethod(util_1.callbackify(_getRejectedList));
457
- serverConfigurationType.updateCertificate.bindMethod(util_1.callbackify(_updateCertificate));
458
- serverConfigurationType.applyChanges.bindMethod(util_1.callbackify(_applyChanges));
459
- }
460
- install_method_handle_on_type(addressSpace);
461
- serverConfiguration.createSigningRequest.bindMethod(util_1.callbackify(_createSigningRequest));
462
- serverConfiguration.updateCertificate.bindMethod(util_1.callbackify(_updateCertificate));
463
- serverConfiguration.getRejectedList.bindMethod(util_1.callbackify(_getRejectedList));
464
- if (serverConfiguration.applyChanges) {
465
- serverConfiguration.applyChanges.bindMethod(util_1.callbackify(_applyChanges));
466
- }
467
- install_CertificateAlarm_1.installCertificateExpirationAlarm(addressSpace);
468
- const cg = serverConfiguration.certificateGroups.getComponents();
469
- const defaultApplicationGroup = serverConfiguration.certificateGroups.getComponentByName("DefaultApplicationGroup");
470
- const certificateTypes = defaultApplicationGroup.getPropertyByName("CertificateTypes");
471
- certificateTypes.setValueFromSource({
472
- dataType: node_opcua_variant_1.DataType.NodeId,
473
- arrayType: node_opcua_variant_1.VariantArrayType.Array,
474
- value: [
475
- node_opcua_nodeid_1.resolveNodeId(node_opcua_constants_1.ObjectTypeIds.RsaSha256ApplicationCertificateType)
476
- ]
477
- });
478
- for (const certificateGroup of cg) {
479
- if (certificateGroup.nodeClass !== node_opcua_data_model_1.NodeClass.Object) {
480
- continue;
481
- }
482
- yield promoteCertificateGroup(certificateGroup);
483
- }
484
- yield bindCertificateManager(addressSpace, options);
485
- });
218
+ install_CertificateAlarm_1.installCertificateExpirationAlarm(addressSpace);
486
219
  }
487
220
  exports.installPushCertificateManagement = installPushCertificateManagement;
488
221
  //# sourceMappingURL=push_certificate_manager_helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"push_certificate_manager_helpers.js","sourceRoot":"","sources":["../source/push_certificate_manager_helpers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;AAEH,+BAAmC;AACnC,iCAAoC;AAEpC,uEAYkC;AAClC,uDAI0B;AAC1B,yDAAsE;AACtE,mEAAiE;AACjE,uDAA8I;AAC9I,2DAAyE;AACzE,iEAA8G;AAG9G,+DAAqD;AACrD,uEAAqF;AAOrF,gFAE2C;AAC3C,wGAGuD;AACvD,kEAGoC;AACpC,yDAAsE;AAEtE,MAAM,QAAQ,GAAG,gCAAa,CAAC,qBAAqB,CAAC,CAAC;AACtD,MAAM,OAAO,GAAG,iCAAc,CAAC,qBAAqB,CAAC,CAAC;AACtD,MAAM,UAAU,GAAG,kCAAe,CAAC,qBAAqB,CAAC,CAAC;AAC1D,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAE1B,SAAS,qBAAqB,CAAC,OAAuB;IAClD,IAAI,CAAC,OAAO;QACR,CAAC,OAAO,CAAC,OAAO;QAChB,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,EAAE;QACpC,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,OAAO,CAAC,kBAAkB,CAAC,yCAAc,CAAC,aAAa,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAuB;;IAChD,OAAO,CAAC,CAAC,CAAC,CAAA,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAE,OAAO,0CAAE,YAAY,MAAK,sCAAmB,CAAC,cAAc,CAAC,CAAC;AAC7F,CAAC;AAED,SAAS,QAAQ,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pD,CAAC;AAhCD,4EAgCC"}
package/package.json CHANGED
@@ -1,44 +1,44 @@
1
1
  {
2
2
  "name": "node-opcua-server-configuration",
3
- "version": "2.51.0",
3
+ "version": "2.55.0",
4
4
  "description": "pure nodejs OPCUA SDK - module -server",
5
5
  "scripts": {
6
6
  "build": "tsc -b",
7
- "lint": "tslint source/**/*.ts",
7
+ "lint": "eslint source/**/*.ts",
8
8
  "clean": "node -e \"require('rimraf').sync('dist');\"",
9
9
  "test": "mocha"
10
10
  },
11
11
  "main": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts",
13
13
  "dependencies": {
14
- "memfs": "^3.2.4",
15
- "node-opcua-address-space": "2.51.0",
16
- "node-opcua-assert": "2.51.0",
17
- "node-opcua-basic-types": "2.51.0",
18
- "node-opcua-certificate-manager": "2.51.0",
19
- "node-opcua-client": "2.51.0",
20
- "node-opcua-constants": "2.51.0",
14
+ "memfs": "^3.3.0",
15
+ "node-opcua-address-space": "2.55.0",
16
+ "node-opcua-assert": "2.55.0",
17
+ "node-opcua-basic-types": "2.55.0",
18
+ "node-opcua-certificate-manager": "2.55.0",
19
+ "node-opcua-client": "2.55.0",
20
+ "node-opcua-constants": "2.52.0",
21
21
  "node-opcua-crypto": "^1.7.4",
22
- "node-opcua-data-model": "2.51.0",
23
- "node-opcua-debug": "2.51.0",
24
- "node-opcua-file-transfer": "2.51.0",
25
- "node-opcua-hostname": "2.51.0",
26
- "node-opcua-nodeid": "2.51.0",
22
+ "node-opcua-data-model": "2.55.0",
23
+ "node-opcua-debug": "2.55.0",
24
+ "node-opcua-file-transfer": "2.55.0",
25
+ "node-opcua-hostname": "2.55.0",
26
+ "node-opcua-nodeid": "2.55.0",
27
27
  "node-opcua-nodesets": "2.51.0",
28
28
  "node-opcua-pki": "^2.12.0",
29
- "node-opcua-pseudo-session": "2.51.0",
30
- "node-opcua-secure-channel": "2.51.0",
31
- "node-opcua-server": "2.51.0",
32
- "node-opcua-service-translate-browse-path": "2.51.0",
33
- "node-opcua-status-code": "2.51.0",
34
- "node-opcua-types": "2.51.0",
35
- "node-opcua-variant": "2.51.0",
29
+ "node-opcua-pseudo-session": "2.55.0",
30
+ "node-opcua-secure-channel": "2.55.0",
31
+ "node-opcua-server": "2.55.0",
32
+ "node-opcua-service-translate-browse-path": "2.55.0",
33
+ "node-opcua-status-code": "2.55.0",
34
+ "node-opcua-types": "2.55.0",
35
+ "node-opcua-variant": "2.55.0",
36
36
  "rimraf": "^3.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "node-opcua-binary-stream": "2.51.0",
40
- "node-opcua-data-value": "2.51.0",
41
- "node-opcua-leak-detector": "2.51.0",
39
+ "node-opcua-binary-stream": "2.55.0",
40
+ "node-opcua-data-value": "2.55.0",
41
+ "node-opcua-leak-detector": "2.55.0",
42
42
  "should": "^13.2.3",
43
43
  "sinon": "^11.1.2"
44
44
  },
@@ -57,5 +57,5 @@
57
57
  "internet of things"
58
58
  ],
59
59
  "homepage": "http://node-opcua.github.io/",
60
- "gitHead": "75feb111daf7ec65fa0111e4fa5beb8987fd4945"
60
+ "gitHead": "28fdbfe1c5306fd0e69758ccacfa2c6d1722115c"
61
61
  }