Commit Graph

63 Commits

Author SHA1 Message Date
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
Erich Barnstedt e50ea96da2 Merge pull request #92 from mregen/proto_master
- use latest generated and schema files from UA Nodeset (10/19/16) (h…
2016-12-05 21:26:00 +01:00
Martin Regen 29c5519dae - use latest generated and schema files from UA Nodeset (10/19/16) (https://github.com/OPCFoundation/UA-Nodeset)
- remove some yet unsupported functionality for GDS/Pubsub
2016-12-05 14:52:51 +01:00
Erich Barnstedt c4481965ad Merge pull request #91 from OPCFoundation/prototyping
Support for custom transport channel and modified sample app to show usage
2016-12-05 12:51:09 +01:00
Martin Regen a62d11c3fb Basic256Sha256 support 2016-12-02 22:35:00 +01:00
Erich Barnstedt 78973da178 Added support for custom transport channel. 2016-12-02 17:15:35 +01:00
Martin Regen 8b8c2f034f URI should contain hostname not localhost 2016-11-11 10:02:07 +01:00
Martin Regen b8b818e1ef fix the cr feedback
- missing " in CreateCert batches
- NET46 dependency removed
- all TODO removed
2016-11-09 11:51:14 +01:00
Martin Regen 44b8fa50e9 default to 2048bit public keys in certs 2016-11-03 10:53:13 +01:00
Martin Regen 057912c825 - Fixes found during a CTT test pass. Many fixes also due to sync with .Net codebase.
- Sync codebase of Opc.Ua libraries to UA.Net 1.03.340 source on github.
-CTT stress failures and exceptions all fixed.
-Roughly 2 dozen CTT tests are still with red bubbles. Mainly very special cases.
2016-10-07 16:20:25 +02:00
Martin Regen 2f0d3095b8 simplify use of batch created certificates by supplying post build copy method where applicable 2016-09-01 12:40:42 +02:00
Martin Regen ede936d590 windows helper batch CreateAllCerts.cmd to create all certs in one shot. 2016-08-30 19:23:11 +02:00