Commit Graph

42 Commits

Author SHA1 Message Date
Martin Regen 4cd7100d55 Azure pipeline improvements (#965)
- stages now run parallel, cut runtime by a few minutes if we get enough hosted agents...
- supposedly fix the intermittent build errors for solutions, always restore before build or test
- simplify pipeline scripts by changing a few project names
- seperate script for code coverage
- add upload to codecov and codacy, for the latter only if the token is set
- move nohttps build to dotnet build stage
- fix a VS2019 warning in .editorconfig
- give lgtm more coverage by using sample projects

For code coverage, check:
https://codecov.io/gh/OPCFoundation/UA-.NETStandard

For lgtm results, check:
https://lgtm.com/projects/g/OPCFoundation/UA-.NETStandard/?mode=list
2020-05-05 12:06:20 +02:00
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
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
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
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 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
Martin Regen 2acfcc0a30 add mono client test 2018-01-12 15:09:00 +01:00
Martin Regen 953c2a0578 fix travis script for mono 2018-01-10 17:28:25 +01:00
Martin Regen 30d8414472 add travis build for mono 2018-01-09 17:17:40 +01:00
Martin Regen beda27552d add mono console projects / revert net core projects 2017-12-22 12:47:44 +01:00
Martin Regen 4dfcc83732 Console ref server as docker sample (#297)
* console ref server as docker sample (windows)

* docker build for Ubuntu
2017-12-11 14:54:59 +01:00
Martin Regen 5a1ba07619 enable server configuration for reference server and more. 2017-11-16 23:13:04 +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 2742d4585c enable sha256 in ref server and fix cert validation check 038 (#247)
* enable sha256 in ref server and fix cert validation check 038

* fix localisation issue in authority key parser

* IOP Workshop: ref server doesn't set source timestamp

* Fix localisation issue with cert extension parsing

* fix exception when issuer cert has no auth key serial number/issuer
2017-09-25 17:13:41 +02:00
Martin Regen d850f64f81 Support .netstandard2.0 (#237)
* add missing ref for build in VSO hosted VS 2017 build

* project to just build Dlls

* target multiple frameworks

* switch to net46/netstandard1.3

* fix projects to allow for netcoreapp 2.0 build

* fix networking for .Net Core 2.0:
SendAsync and ReceiveAsync now frequently return synchronously even if successful. These cases had not been properly handled yet, previous versions never hit these codepaths.

* fix travis build / nugets

* change travis build target

* fix Kestrel https option for netstandard 2.0
tested with Ua Expert against standard and ref server

* Handle special case correctly, when zero bytes are received its ok, or BadTimeout will occur

* simplify connect, reduce DiscoverEndpoint calls
2017-09-15 09:37:32 +02:00
AlinMoldovean 646a5af62f Fix for exception when reading Extensions section of Config.xml in ConsoleReferenceServer. 2017-07-17 10:40:29 +03:00
Softing 8eab49df07 Compliance fix for shutdown delay in ReferenceServer. 2017-07-14 12:40:13 +03:00
Martin Regen 38296b2b5b merge conflicts with master 2017-07-03 09:53:16 +02:00
Martin Regen 1401a12e16 add method server factes, its supported 2017-06-30 11:54:41 +02:00
Martin Regen 0dfc14d94c fix Ref server project for VS 2017 2017-06-29 18:50:50 +02:00
Erich Barnstedt 9bad4a301a Upgrade other solutions and fix travis issues. 2017-06-29 07:51:04 -07:00
Martin Regen 1db918c0cc set local=null if unspecified
Give ApplicationName default locale
remove locality in cert
remove unfinished node test in ref server
2017-06-20 16:59:58 +02:00
Martin Regen ca9a17dd77 add ServerProfileArray to Base Info Server Caps 2017-06-20 14:47:26 +02:00
Martin Regen faf4d1aa60 enable Sha256 for CTT1.3 2017-06-02 10:38:08 +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 232f554636 - regressions found during UACTT pass.
- add secure RNG for BC create cert function
2017-05-01 20:20:32 +02:00
Martin Regen fd5c9369fc Update all subject names 2017-04-27 17:49:43 +02:00
Marc Schier 2af2a4dd75 Add visual studio 2017 solution file to allow building .net Standard … (#150)
* Add visual studio 2017 solution file to allow building .net Standard stack and console samples

* Enable VS 2015 when VS 2017 is installed

* Update readme
2017-03-23 11:17:39 +01:00
Martin Regen 4b4d724c40 doc updates for new samples 2017-01-05 13:40:21 +01:00
Martin Regen 9399d1761e CTT test ref server improvements
- implement more test functions
- implement MultiStateValueDiscreteItem ValueAsText Property
- add Nodes for AccessLevel_xxx_NotUser tests
- keep only one copy of ref server sources
2016-12-22 18:29:24 +01:00
Martin Regen c0d2c7746f fix all .Net configs to use %CommonApplicationData% and LDS 2016-12-22 18:11:10 +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
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
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
Martin Regen a62d11c3fb Basic256Sha256 support 2016-12-02 22:35:00 +01:00
Martin Regen 7204cc37cc fix issues found during IOP workshop:
- shouldn't check client nonce if there is policy is None
- don't validate hostname when using ip address to connect
- user token need a sec policy
2016-11-28 18:24:13 +01:00
Martin Regen 55810c6bf0 Pass CTT Security/Security User X509 test cases 2016-11-13 22:08:39 +01:00
Martin Regen 1287791c4f turn off tracing 2016-11-11 16:09:57 +01:00
Martin Regen 8b8c2f034f URI should contain hostname not localhost 2016-11-11 10:02:07 +01:00
Martin Regen c5c8b79047 Add console ref server for CTT tests against Linux, iOS etc. 2016-11-10 22:13:59 +01:00