Commit Graph
526 Commits
Author SHA1 Message Date
Martin Regen d31c8cc6e4 - implement a few TODO (#859)
- bugfixes found in testing
2019-12-02 16:29:25 +01:00
AlinMoldovean 77a183ec6b Nonce validation fix in Client Session. The minimum nonce length should be 32 in CreateSession and ActivateSession responses. 2019-11-28 19:10:07 +02:00
Alin Moldovean ea1d78a515 Merge pull request #854 from AlinMoldovean/master
ComplexTypes fix for using shared EncodableFactory in UA Sample Client
2019-11-21 14:49:42 +02:00
dependabot[bot] 1b11fb68b0 Bump Microsoft.NETCore.UniversalWindowsPlatform (#853)
Bumps [Microsoft.NETCore.UniversalWindowsPlatform](https://github.com/Microsoft/dotnet) from 5.4.0 to 5.4.2.
- [Release notes](https://github.com/Microsoft/dotnet/releases)
- [Commits](https://github.com/Microsoft/dotnet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-21 13:18:39 +01:00
AlinMoldovean 095dc40680 ComplexTypes fix for using shared EncodableFactory in UA Sample Client 2019-11-21 13:54:43 +02:00
Martin Regen 39dca2c103 Complex Types client library (#849)
Adds a complex type system client library extension for custom enumerations and structure types based on a server dictionary or DataTypeDefinition using emitted classes at runtime. 

- Custom types are added to the session factory, not to the global factory. Types are loaded when the session connects by adding 
`                var complexTypeSystem = new ComplexTypeSystem(session);
                await complexTypeSystem.Load();
`
- Custom type properties can be accessed with an accessor [propertyname] or [index]. Direct access through the properties is possible, but some cases do not update the optional or union flags correctly.
- Support includes V1.03 dictionaries and V1.04 DataTypeDefinitions (--> known issues).
- NetCoreComplexClient can be used for quick testing servers. It prints out all custom types with content and subscribes to all. Also includes sample how to write back complex type variables and how to output JSON.
- The UA Sample Client and the Quickstart Data Type client can be used for testing with UI. Many issues were adressed to be able to read and write complex types, however some support is limited, e.g. only editing simple fields is currently working (help wanted).
- Caveat: The complex type libaries for .Net Core must be built for .netcoreapp, so it needs a seperate nuget package for the complex type client extension.
- Support for a factory type builder class to allow to plugin other type builder methods (e.g. Codedom etc...)
- Added JSON test case and include the complex types client in the testing shell script, so the complex types lib is tested on mac/linux too.
- Few fixes in the JSON encoder.

Finding enough servers with custom types is an issue, so if you find servers with unsupported custom types please provide feedback.

Known limitations:
- Only V1.03 OPC binary dictionaries are supported (no XML Schema dictionaries).
- V1.03 dictionary structure definitions are only supported if they can be mapped to a V1.04 DataTypeDefinition. Nested types and cross dictionary refs should work.
- OptionSet is only partially implemented. Only shows the byte arrays, not the flags.
- Opaque Types in dictionaries are ignored.
2019-11-20 16:05:24 +01:00
AlinMoldovean 8504055a83 Add server nonce validation in Client session. 2019-11-12 17:00:07 +02:00
Alin Moldovean dc9fa85a38 Fixes #822 - Certificate Validation fix. (#843)
* Remove BadCertificateUriInvalid from list of certificate validation errors that may be suppressed.
2019-11-06 09:49:08 +02:00
Andrew Field d7130a97d4 Spelling (#840) 2019-11-05 10:07:52 +02:00
Martin Regen ef06464776 fix schema validator and dictionary loader (only binary) (#833)
* fix schema validator and dictionary loader (only binary scheme)
# include some .bsd files for validation
* add check for some configuration fields, to return a meaningful error.
2019-10-29 18:16:37 +01:00
Martin Regen 6971c76d88 Improve Data Type Quickstart Server (#831)
- add a few more dependent complex types for testing
- fix UI issue which prevents dialogs from showing data
* workaround for dialogs with imagestream, always throwing exceptions
* rebuild with v1.04 modelcompiler
2019-10-25 15:57:34 +02:00
AlinMoldovean 14869582e4 Client Session KeepAlive fix - outstanding publish requests should not stop keep alive reads. 2019-10-03 16:55:44 +03:00
AlinMoldovean df0cc4287d #791 - Update UA NodeSets and generated code with the latest updates for V1.04.3 Errata. 2019-10-02 17:44:53 +03:00
Alin Moldovean a1e26bf849 Interoperability fixes for HTTPS (#814)
* Fixes #709 - Allow HTTPS clients to send the certificate for servers that require TLS client authentication

* Fixes #692 - HTTPS Server listener - Use the first configured policy for HTTPS
2019-10-02 15:38:59 +03:00
Martin Regen 23b9c37b48 Make the SQL Db ApplicationNames locale nullable (#812)
App registration for push servers from GDS client stopped working, maybe due to new db version in VS. But nulling the locale fixes the issue.
Note: DB should be recreated or the locale column must be manually set to nullable in the SQL Db.
#811 fixed
2019-10-01 08:27:53 +02:00
Alin Moldovean efd66a2acb Save server certificate in ClientSession if no encryption is required. (#813)
* Fix build order in UA Quickstart Applications.sln

* Fixes #800. Save server certificate in client Session even if no encryption is required.
2019-10-01 06:47:51 +03:00
Martin Regen 550ed0a45f renew Universal Windows package certs (#810)
* renew certs
* update csproj with new hash
2019-09-30 08:35:34 +02:00
AlinMoldovean b1c0293fb4 Fixes #796 2019-09-19 17:55:07 +03:00
ejoseca de838b727a Fixes saving client session to XML. (#757)
Fixed bug in Opc.Ua.Client.Save method.
2019-07-22 16:08:50 +03:00
AlinMoldovean e257ba07df Fix to avoid timer interval higher than Int32.MaxValue in ClientSubscription.StartKeepAliveTimer() 2019-06-19 16:19:02 +03:00
Chris Law 92fa5182ae Change to catch error from validating the server certificate. Fixing #710 and #678. (#739) 2019-06-10 15:58:24 +03:00
AlinMoldovean f5bee6ec7c Set default configuration of ReferenceServer to reject certificates with unknown revocation status. 2019-05-31 15:45:27 +03:00
AlinMoldovean 2fa6ba398d Set RejectUnknownRevocationStatus configuration flag to false by default in Reference Server 2019-05-23 12:57:02 +03:00
AlinMoldovean f062bfdc89 Compliance fixes in CertificateValidator.
Added setting in SecurityConfiguration to require revocation lists for all CAs
2019-05-21 17:42:59 +03:00
Alin Moldovean 40db29f3a2 Fixes #703.
Fix regression caused by #656. Add a MonitoredItem constructor to allow keeping the ClientHandle of the template. (#704)
2019-04-17 10:03:19 +03:00
Alin Moldovean 0a6b1cb3e3 CTT compliance fixes. (#702) 2019-04-15 11:58:23 +03:00
Martin Regen 93146020a4 Certificate Validator tests and Pem writer fix (#701)
- add more tests verify how longer cert chains are built and verified with the cert validator
- some tweaks to cert factory to allow for building Sub CA certs
- allow to set the Basic Constraint  / Path Length for CA certs
- fix #695 PKCS#8 format is now used
- add additional check to verify incomplete chain signatures
2019-04-12 16:47:34 +02:00
Bilge Kaan KAZAZ ef4c918494 Fixes the wrong DisplayName issue of a MonitoredItem after reconnect 2019-03-22 21:50:11 +03:00
Martin Regen 64db8c73a9 IOP GDS cert related fixes (#674)
* do not require server capabilities
* fixes for cert creation key usage flags
2019-03-18 12:37:04 +01:00
Alin Moldovean cbeb24eb5e Merge pull request #652 from jh-isw/master
correct indentation
2019-02-28 13:45:52 +02:00
julien 593aefd3b3 Fix Wrong clientHandle when reconnecting a session ; the clone / template procedures where not keeping this precious unique identifier. 2019-02-19 10:28:15 +01:00
Jan Hecht 8af6c278c5 correct indentation 2019-02-17 18:07:48 +01:00
AlinMoldovean 8b374a7448 Copyright year set to 2019 in license notices. 2019-02-14 12:34:33 +02:00
Alin Moldovean ea1911c4a1 Update UA NodeSets and generated code with the latest fixes for V1.04 (#637) 2019-02-05 16:00:12 +02:00
Ahmed Ashour 0203717182 Update Session.cs (#622)
Fix typos
2019-01-14 15:19:17 +02:00
Alin Moldovean b8d911c569 Updates for V1.04 attributes in Client and Server (#614)
* Update for 1.04 attributes in ClientSession.ReadNode()

* Fix in ClientSession.ReadNode()

* Updates for 1.04 Attributes in server.

* Discard inner value for attributes with bad status codes in ClientSession.ReadNode().

* Remove unused attribute from AttributeWriteMask
2018-12-17 12:53:19 +02:00
Camille Guérin 3546e56e05 Fixed GetServiceResult null checks
Fixed wrong null checks for Notification message in GetServiceResult(IEncodeable notification) and GetServiceResult(IEncodeable notification, int index)
2018-11-14 09:57:19 +01:00
Martin Regen ce4921988e Refactor gds internal interface to use cert group and type strings (#578)
…instead of node id

It simplifies storage of cert group and type in attached db as string.
All GDS unit tests pass.
Breaking change (for GDS) due to interface change.
2018-10-29 14:54:32 +01:00
Alin Moldovean d87df993f3 Merge pull request #576 from AlinMoldovean/master
Allow access to node managers from MasterNodeManager + IOP issue fix
2018-10-29 12:39:00 +02:00
Martin Regen d007a41d15 Add Aes profile support (#574)
* add the Aes128 and Aes256 profiles
* Aes profies were tested on IoP workshop against Ascolab, Softing, Matrikon, Milo, ProSys and others
* Pss padding is not supported on all platforms, so autodetect if it is supported and filter out Aes256 if not
* not a breaking change: not specifying the SecurityProfileUri in the config xml will automatically add all supported profiles but not deprecated profiles (e.g. Basic256Sha256, Aes128, Aes256). Aes256 is only added if the platform supports Pss padding. This will simplify the maintenance of config xml, since automatically all supported and secure profiles are exposed.
2018-10-29 09:58:45 +01:00
AlinMoldovean b9d07b0702 Merge branch 'master' of https://github.com/OPCFoundation/UA-.NETStandard 2018-10-29 09:16:48 +02:00
AlinMoldovean 8e5b34a91b fixes issue #533 allow access to NodeManagers of MasterNodeManager. 2018-10-26 11:04:32 +02:00
AlinMoldovean 9e74131f3b Do not discard ClientSession in case FetchNamespaceTables() goes in error. 2018-10-26 10:45:58 +02:00
Alin Moldovean 1121363a4c Merge pull request #560 from beeond/master
Allow ConsoleAggregationServer to load predefined nodes
2018-10-25 16:07:24 +02:00
Andrew Cullen fcc0e2f47b Allow ConsoleAggregationServer to load predefined nodes from an embedded resource. 2018-10-12 10:07:20 -04:00
AlinMoldovean 31a8235007 Added DecimalDataType node in ReferenceServer.
Predefined nodes updated to include DecimalDataType structure.
2018-10-12 16:00:40 +03:00
Martin Regen 493009dd53 Prototyping gds (#46)
* allow GDS configuration which doesn't auto approve
2018-09-25 12:20:50 +02:00
Alin Moldovean 23b35e9f6b Merge pull request #515 from AlinMoldovean/master
Certificate stores renamed according to specs
2018-09-13 17:55:30 +03:00
AlinMoldovean 2fc2d97975 Update logic for user certificate validation to allow self signed certificates. 2018-09-13 17:52:10 +03:00
AlinMoldovean 4ed82868da Update GDS certificate stores after code review. 2018-09-13 15:30:14 +03:00