node-opcua-server-configuration 2.186.12 → 2.186.14

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 (39) hide show
  1. package/dist/push_certificate_manager.d.ts +2 -0
  2. package/dist/push_certificate_manager.d.ts.map +1 -1
  3. package/dist/server/application_setup.d.ts +5 -0
  4. package/dist/server/application_setup.d.ts.map +1 -1
  5. package/dist/server/application_setup.js +7 -3
  6. package/dist/server/application_setup.js.map +1 -1
  7. package/dist/server/install_push_certificate_management.d.ts.map +1 -1
  8. package/dist/server/install_push_certificate_management.js +24 -1
  9. package/dist/server/install_push_certificate_management.js.map +1 -1
  10. package/dist/server/promote_trust_list.d.ts.map +1 -1
  11. package/dist/server/promote_trust_list.js +70 -32
  12. package/dist/server/promote_trust_list.js.map +1 -1
  13. package/dist/server/push_certificate_manager/create_signing_request.d.ts.map +1 -1
  14. package/dist/server/push_certificate_manager/create_signing_request.js +7 -1
  15. package/dist/server/push_certificate_manager/create_signing_request.js.map +1 -1
  16. package/dist/server/push_certificate_manager/get_rejected_list.d.ts +7 -0
  17. package/dist/server/push_certificate_manager/get_rejected_list.d.ts.map +1 -1
  18. package/dist/server/push_certificate_manager/get_rejected_list.js +7 -2
  19. package/dist/server/push_certificate_manager/get_rejected_list.js.map +1 -1
  20. package/dist/server/push_certificate_manager/internal_context.d.ts +6 -0
  21. package/dist/server/push_certificate_manager/internal_context.d.ts.map +1 -1
  22. package/dist/server/push_certificate_manager/internal_context.js +6 -0
  23. package/dist/server/push_certificate_manager/internal_context.js.map +1 -1
  24. package/dist/server/push_certificate_manager_server_impl.d.ts +15 -0
  25. package/dist/server/push_certificate_manager_server_impl.d.ts.map +1 -1
  26. package/dist/server/push_certificate_manager_server_impl.js +4 -0
  27. package/dist/server/push_certificate_manager_server_impl.js.map +1 -1
  28. package/dist/trust_list.d.ts +14 -14
  29. package/dist/trust_list.d.ts.map +1 -1
  30. package/package.json +8 -8
  31. package/source/push_certificate_manager.ts +2 -0
  32. package/source/server/application_setup.ts +8 -3
  33. package/source/server/install_push_certificate_management.ts +25 -1
  34. package/source/server/promote_trust_list.ts +86 -32
  35. package/source/server/push_certificate_manager/create_signing_request.ts +7 -1
  36. package/source/server/push_certificate_manager/get_rejected_list.ts +7 -2
  37. package/source/server/push_certificate_manager/internal_context.ts +10 -0
  38. package/source/server/push_certificate_manager_server_impl.ts +18 -0
  39. package/source/trust_list.ts +14 -14
@@ -41,21 +41,19 @@ export interface ITrustList {
41
41
  *
42
42
  * If an invalid Certificate is found the Server shall return an error and shall not update the Trust List.
43
43
  *
44
- * If the Certificate is issued by a CA then the Client shall provide the entire chain in the
45
- * certificate argument (see Part 6).
44
+ * The Method returns a validation error if the Certificate is issued by a CA and the
45
+ * Certificate for the issuer is not in the Trust List. Issuer Certificates cannot be added
46
+ * with this Method: they are written, with their CRLs, through Open/Write/CloseAndUpdate.
46
47
  *
47
- * After validating the Certificate, the Server shall add the CA Certificates to the Issuers list in the Trust List.
48
- *
49
- * The leaf Certificate is added to the list specified by the isTrustedCertificate argument.
50
- *
51
- * This method cannot be called if the file object is open
52
- * @param certificate - The DER encoded Certificate to add as a ByteStrng
53
- * @param isTrustedCerticopy ficate - If TRUE the Certificate is added to the Trusted Certificates List. If FALSE the Certificate is added to the Issuer Certificates List.
48
+ * This method cannot be called if the file object is open (OPC 10000-12 §7.8.2.6).
49
+ * @param certificate - The DER encoded Certificate to add as a ByteString
50
+ * @param isTrustedCertificate - If TRUE the Certificate is added to the Trusted Certificates List. If FALSE BadCertificateInvalid is returned.
54
51
  *
55
52
  * **Result Code**
56
53
  * - BadUserAccessDenied: The current user does not have the rights required.
57
54
  * - BadCertificateInvalid: The certificate to add is invalid.
58
- * - BadInvalidState: The object is opened.
55
+ * - BadInvalidState: The object is open for write and CloseAndUpdate has not been called.
56
+ * - BadNotWritable: The object is open for read only.
59
57
  *
60
58
  */
61
59
  addCertificate(certificate: Buffer, isTrustedCertificate: boolean): Promise<StatusCode>;
@@ -67,16 +65,18 @@ export interface ITrustList {
67
65
  *
68
66
  * If the Certificate is a CA Certificate with associated CRLs then all CRLs are removed as well.
69
67
  *
70
- * This method cannot be called if the file object is open.
68
+ * This method cannot be called if the file object is open (OPC 10000-12 §7.8.2.7).
71
69
  *
72
70
  * @param thumbprint - The SHA1 hash of the Certificate to remove
73
71
  * @param isTrustedCertificate - If TRUE the Certificate is removed from the Trusted Certificates List.
74
72
  * If FALSE the Certificate is removed from the Issuer Certificates List.
75
73
  *
76
74
  * **Result Code**
77
- * -BadUserAccessDenied: The current user does not have the rights required.
78
- * -BadInvalidArgument: The certificate to remove was not found.
79
- * -BadInvalidState: The object is opened.
75
+ * -BadUserAccessDenied: The current user does not have the rights required.
76
+ * -BadInvalidArgument: The certificate to remove was not found.
77
+ * -BadCertificateChainIncomplete: The Certificate is needed to validate another Certificate in the Trust List.
78
+ * -BadInvalidState: The object is open for write and CloseAndUpdate has not been called.
79
+ * -BadNotWritable: The object is open for read only.
80
80
  *
81
81
  *
82
82
  */