Commit Graph

74 Commits

Author SHA1 Message Date
Alexander Köpke 3e61a85901 Update from .NET 4.6 to .NET 4.6.2 (#959)
Upgraded all project from .NET 4.6 to .NET 4.6.2 that also .NET framework applications can use latest version of Kestrel

* Updated Kestrel to 2.2.0 (for Opc.Ua.Core)
* Simplified csproj (removed ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3'") because currently we don't build netstandard1.x anymore
* Removed Kestrel 1.1.3 code from Stack/Opc.Ua.Core/Stack/Https/HttpsListener.cs 
* add conditions to Stack/Opc.Ua.Core/Stack/Https/HttpsTransportChannel.cs 
  * [HttpClientHandler.ServerCertificateCustomValidationCallback](https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclienthandler.servercertificatecustomvalidationcallback?view=netcore-3.1&viewFallbackFrom=netframework-4.6.2) should not be available in .NET 4.6.X
* Updated travis.ci to use latest mono version (original version causes build errors)
* Added nuget reference .NET Standard Library to mono projects to be compatible with latest Kestrel version

Own Travis.ci and Azure Pipeline builds run sucessfully.
2020-05-01 09:57:15 +02:00
Karl Deiretsbacher 6a4e3a6154 Update CustomTransportChannel.cs
Replaced dual license with MIT. Only stack files have dual license.
2020-01-22 09:40:36 +01: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
Andrew Field d7130a97d4 Spelling (#840) 2019-11-05 10:07:52 +02:00
AlinMoldovean 8b374a7448 Copyright year set to 2019 in license notices. 2019-02-14 12:34:33 +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 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 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
AlinMoldovean 17dc14bcc5 Implement #362 - Certificate chain support. 2018-03-07 18:44:00 +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 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
Martin Regen 9792df49eb IOP workshop fixes for reference server (#341)
* DataValue cannot contain a DataValue by spec
* default to Basic256Sha256
* default DataValue should return null
2018-02-05 14:54:55 +01:00
Martin Regen 13b9f00dd3 Add Quickstart Applications from .NET repo
building..
unify the way .Net apps are started
2018-01-05 16:24:56 +01:00
Martin Regen 28e3e12cef make client tests configurable to use external GDS/push servers 2017-11-17 10:51:13 +01:00
Martin Regen a5bb127089 Merge remote-tracking branch 'mregen/pushserver' into gds_work_certs 2017-11-07 16:37:16 +01:00
Martin Regen 915ad5b87c - add cert configuration nodes
- Update cert and sign request is still missing
- no security!
2017-11-07 16:33:15 +01:00
Martin Regen beaab50040 lower API surface to netstandard1.3/net46 2017-10-24 14:01:43 +02:00
Erich Barnstedt 61e7d0d01d Removing unneeded files. 2017-07-04 16:05:45 +02:00
Erich Barnstedt aaa53367f4 Merge pull request #185 from mregen/ctt_fixes_2017
CTT 1.3 certification updates
2017-07-04 11:12:57 +02:00
Erich Barnstedt cfd82bd704 Fixed HTTPS for .NetCore and disabled it for .Net due to an issue with LibUV (see https://github.com/aspnet/Hosting/issues/1115) 2017-07-03 16:42:16 +02:00
Martin Regen 73ac861c89 Merge pull request #17 from OPCFoundation/master
Merge with Master
2017-06-29 09:29:54 +02:00
Erich Barnstedt a9e45c86df Fixed platform target. 2017-06-28 13:59:19 -07:00
Erich Barnstedt 716f971630 Workaround for bug https://github.com/NuGet/Home/issues/4488. 2017-06-28 13:16:05 -07:00
Martin Regen 3f21d1a0ab merge 2017 changes 2017-06-26 17:22:26 +02:00
Martin Regen 56bf36b1de cleanup, CTT recommends either L or DC in distinguished name 2017-06-22 16:38:40 +02:00
Erich Barnstedt e6f0ca9420 Upgrade to VS2017/.Net1.1 2017-06-09 17:50:23 +02:00
Erich Barnstedt ef8fe340b6 1. Removed SecurityLevel from server config, it is now automatically calculated for each endpoint description.
2. Fixed spelling/grammar in a few places.
2017-05-08 12:29:57 +02:00
Martin Regen fd5c9369fc Update all subject names 2017-04-27 17:49:43 +02:00
Erich Barnstedt 8074adbac1 Added description. 2017-02-20 09:07:16 +01:00
Erich Barnstedt e768b359e6 Remove security mode 0 (no security) from all configurations as it is a secrity risk. 2017-02-19 18:12:40 +01:00
Erich Barnstedt a332f659e5 Adressed code review feedback. 2017-02-16 15:41:26 +01:00
Erich Barnstedt 71a0f88faf Reverted certificate store config of UA client back to original directory store. 2017-02-14 18:52:58 +01:00
Erich Barnstedt 8b16699e7e Added X509 cert store (as a replacement for the platform-specific Windows cert store) and modified UA Client app to make use of it. 2017-02-13 19:14:59 +01:00
Martin Regen cfd6cfa670 fix cr feedback, typos 2017-01-24 11:26:10 +01:00
Martin Regen 81abf02e97 UaSCBinary is now UaSCUaBinary according to UA-SC UA Binary in the spec 2017-01-23 17:10:49 +01:00
Martin Regen b04df2b4d5 TcpClientChannel is now UaScBinaryClientChannel 2017-01-23 16:30:54 +01:00
Martin Regen d450ef96a8 make TransportChannel generic 2017-01-23 13:19:12 +01:00
Martin Regen dbc32544da refactoring the client channels. Works with Opc.Ua.Proxy. Allows to replace just the socket layer, so the channel, binary encoding and security can be reused. 2017-01-20 18:46:28 +01:00
Martin Regen f8876e2f35 reduce usage of Task.Run
build debugType portable
2017-01-12 11:24:16 +01:00
Erich Barnstedt da44a1109e Fixing CR/LF once and for all! 2017-01-04 14:51:17 +01:00
Martin Regen 17123d28e1 Convert UTF-32 C# sources to UTF-8 (#14)
Causing problems when CRLF conversion is enabled and when diffing in PR.

* SampleServer.cs to UTF-8

* SampleServer.SampleModel.cs to UTF-8

* SampleServer.UserAuthentication.cs to UTF-8

* remove .cs extension from forced text attribute

* DataComparer.cs to UTF-8

* Program.cs to UTF-8
2017-01-03 15:23:44 +01:00
Martin Regen c0d2c7746f fix all .Net configs to use %CommonApplicationData% and LDS 2016-12-22 18:11:10 +01:00
Martin Regen d2a35e93c9 custom transport channel needs a factory function to create a new instance per session 2016-12-19 13:51:53 +01:00
Martin Regen a7ce895f7c -Move all uanodes and txt resources into dlls
-delete the obsolete uanodes/txt files in project folders

note: clean build required, make sure all dll are updated in bin folders or resources in dll may not be found
2016-12-16 16:00:17 +01:00
Erich Barnstedt d7c2faf9d9 Merge pull request #94 from mregen/proto_master
Create self signed certs in Opc.Ua.Core
2016-12-09 08:31:55 +01:00
Martin Regen 5c370bd742 cert creation fixes
- certs were not created on Linux w. Openssl if a passcode was missing from the pkcs12 store
- stabilize the creation on windows where UWP is picky about the storage keys to use
- CR feedback
2016-12-08 18:35:31 +01:00
Martin Regen 2148d65084 improve cert handling of sample apps
- create self signed cert on first start (kudos to bouncy castle)
- fix path handling in many areas,
- ./ or ../ is treated as rooted dir
- special %LocalFolder% for UWP apps to allow to write certs in app temp storage
- all batch helpers to create certs removed
2016-12-07 18:29:24 +01:00
Erich Barnstedt edf3ef8767 Only renamed "IoTProxy" to "Custom" to be more generic. 2016-12-06 15:19:36 +01:00