Commit Graph

377 Commits

Author SHA1 Message Date
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
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 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 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
Martin Regen 550ed0a45f renew Universal Windows package certs (#810)
* renew certs
* update csproj with new hash
2019-09-30 08:35:34 +02: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
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
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
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
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
Martin Regen 493009dd53 Prototyping gds (#46)
* allow GDS configuration which doesn't auto approve
2018-09-25 12:20:50 +02: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
AlinMoldovean ed40dea643 Update GDS certificate stores after code review. 2018-09-13 15:26:18 +03:00
AlinMoldovean 9ff7f61fa1 Certificate stores renamed according to Part 12 specification recommendation. #383 2018-08-07 17:54:14 +03:00
AlinMoldovean fd6d13a995 Create custom configuration settings for user certificates in ReferenceServer. #383 2018-08-06 17:22:23 +03:00
AlinMoldovean 036320221b Create custom configuration settings and validators for user certificates. #383 2018-08-06 17:13:49 +03:00
Martin Regen ced33e1957 Improvements for cloud based Gds and V1.04 nodes (#508)
- all changes for cloud based GDS
 - build version of .net standard libs is now set in version.props, it may require updates for the official builds.
  - add new stuff for v1.04 nodeset, e.g. QueryApplications Api
  - gds.client/gds.server common dll changes to support a cloud based GDS.
2018-07-31 13:32:21 +02:00
Martin Regen ebe2330c8f Appveyor build fix (#507)
* replace outdated certs
* fix universal windows test build until 7/31/19
2018-07-31 09:58:53 +02:00
Alin Moldovean 92bef97e51 Fix for Mantix #4321 + deprecated security polices removed from config.xml files (#505)
* Fix for Mantis #4231. Refuse to use untrusted certificates to encrypt user identity tokens sent to servers.

* Deprecated security policies removed from default server config.xml files.
2018-07-18 08:28:07 +03:00
Martin Regen e6916f31be License info in V1.04 is not quite right (#503)
* Use OPC REDISTRIBUTABLES Agreement of Use in nuget packages (#424)

* Security policy Basic128Rsa15 removed from default server configurations.
2018-07-17 17:31:59 +03:00
Alin Moldovean 0d08d40180 Update NodeSets and generated code with latest fixes for V1.04 (#487)
Update NodeSets and generated code with latest fixes for V1.04 Errata
2018-06-26 09:29:36 +03:00
Alin Moldovean 1c7a208dc0 Fixes #436. Update method call validation in SampleNodeManager. (#477) 2018-06-19 09:00:11 +03:00
Oyvind Landsnes 79f4da032c AddReferences method returns too early
The AddRefrences method exists in similar versions in several of the sample node manager classes. The method loops through a list of (external) references and adds them to the designated objects. When obtaining node handles it also checks that the node is valid in the current context. The problem was that it skipped the rest of  the nodes in the list as soon as it found one node that wass not valid. This change ensures that all nodes in the references list are processed.
2018-05-24 19:38:53 +02:00
AlinMoldovean 49fb32fdce Assembly version set to 1.04.353 2018-05-03 15:11:48 +03:00
Alin Moldovean eb5d0b2ee9 Merge pull request #415 from OPCFoundation/v1.03
Integrate V1.03 to master
2018-03-30 13:28:38 +03:00
AlinMoldovean 27ff681320 Assembly version set to 1.03.352 2018-03-29 16:23:01 +03:00
Martin Regen ec5cdd5ab6 Merge pull request #403 from OPCFoundation/v1.03
reverse integrate V1.03 to master (v1.04)
2018-03-16 19:35:08 +01:00
Martin Regen e2a4020984 Fix V103 nohttps build (#401)
- Fix the NO_HTTPS build to reduce publish size if HTTPS is not needed
e.g. `dotnet build /p:NoHttps=true`
- Limit language Version to C#6 for VS 2015 compat
- add travis & appveyor cases for nohttps build
- enable GDS Https transport
- update nuspec
2018-03-16 10:21:32 +01:00
AlinMoldovean 484cecdc95 Fixes #389 - Boiler classes and nodeset files rebuilt to include program control methods. 2018-03-13 18:20:11 +02:00
Martin Regen bc78cded47 Merge pull request #387 from OPCFoundation/v1.03
reverse integrate V1.03 to master
2018-03-08 20:53:35 +01:00
AlinMoldovean 8d293f2175 fix endpointUrl in CoreConsoleClient. 2018-03-07 18:48:44 +02:00
AlinMoldovean 17dc14bcc5 Implement #362 - Certificate chain support. 2018-03-07 18:44:00 +02:00
Martin Regen 21cc6cb178 Merge pull request #377 from OPCFoundation/v1.03
V1.03 reverse integrate to master
2018-03-02 14:28:39 +01:00
Martin Regen 23f0e3abd7 add App Uri to csr / test app uri in signing request. Use domain names in signing request. 2018-02-28 11:49:37 +01:00
AlinMoldovean dfd9c717b6 #363 - Optional program control methods removed from ProgramStateMachineState 2018-02-22 18:37:08 +02:00
AlinMoldovean 0894364ca9 #363 - Generated code and NodeSets for V1.04 OPC UA Specifications 2018-02-22 13:41:30 +02:00
Martin Regen 75d8b2ca3c Fix .Net 4.6 Https client and server (#359)
- best possible fix for #189 to reenable https servers 
- `UA Sample Client` and `UA Sample Server` expose https server. libuv.dll is by default for x64. Change 
```
<PropertyGroup>
   <RuntimeIdentifier>win7-x64</RuntimeIdentifier>
   <BaseNuGetRuntimeIdentifier>win7-x64</BaseNuGetRuntimeIdentifier>
</PropertyGroup>
```
to win7-x86 if required.
- fix exception in https client when setting the Timeout
- fix travis build script for linux. kestrel server on ubuntu doesn't respond on ipv6Any ipaddress.
- fix a timing problem in the travis script.
2018-02-20 11:27:00 +01:00
Martin Regen 4d05093462 Clean up nuget dependencies (#353)
- remove dependency on System.Private.ServiceModel, it should not be used directly
- remove packages.config, VS2017 doesn't need it
- use ref to .Net instead of nuget to reduce number of packages used
2018-02-16 19:14:12 +01:00
Daniele Colonna 61a6ba276e Add Readme for UA Xamarin Client (#352)
* Add Readme
* fix compiler warning
2018-02-15 11:03:12 +01:00
Martin Regen e21f99eaf6 Fixes for https client and server (#346)
* Fixes for https client and server (#38)

HTTPS server fixes:
- Kestrel 2.0 in netcoreapp 2.0 server samples: only responds to some clients, not to UA samples at all. Fix configuration (listen to all ip addresses) 

HTTPS client fixes:

- bug: client gets stuck if subscription is active by nesting too many calls (use async callback)
- https client needs server cert in a trusted store or it refuses connection (auto accept server certs, but fix is not supported on all platforms, e.g. UWP apps still require a cert in the trusted store)
- runtime issues with .Net 4.6. apps (cannot find diagnostics dll) --> workaround is to manually add nuget package of System.Net.http 4.3.3

- Add https connection to travis test script (only .Net Core)

* fix shell script exe

* also listen on ipv6 port

* do not use auto validation on OSX
2018-02-08 13:58:07 +01:00
Daniele Colonna a614964378 add Xamarin OPC UA sample client (#337)
* add Xamarin OPC UA sample client
2018-02-07 19:15:48 +01:00
Martin Regen b9a1a09937 Gds CA provider interface abstraction (#344)
* refactor GDS with a CA provider to allow replacement
* Fill push server list with FindServersOnNetwork
* feedback and issues found in IOP workshop
2018-02-06 14:26:01 +01:00