Commit Graph

71 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 3cc8373900 Update Program.cs
Replaced the dual license with MIT to make it consistent with all other sample source files.
2020-01-22 09:51:32 +01: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
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
Martin Regen 5063ac0907 Console client improvements (#343)
* use config file for console sample
* filter unsupported security policies
* add reconnect handler
2018-02-06 14:15:16 +01:00
Martin Regen 714924856d fix mono test scrip and client 2018-01-12 16:06:48 +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 2fa9ea9e2a change console server project to run with mono 5.4 2017-12-22 11:49:26 +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 d2566c60bd X509store mac fix and travis improvements (#264)
* X509store mac os (#31)

* Fix problem when X509Store CurrentUser\\UA_MachineDefault cannot be created on macOS with .NetStandard2.0
Fix: Use CurrentUser\My instead for all machine certs to make console apps portable.

* prep console sample apps for smoke test
* update travis image
* run sample server and client as smoke test


* ignore travis osx build failure until travis is fixed
2017-10-12 11:16:09 +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
Martin Regen 73ac861c89 Merge pull request #17 from OPCFoundation/master
Merge with Master
2017-06-29 09:29:54 +02:00
Erich Barnstedt aa06912d24 Merge pull request #170 from OPCFoundation/develop_erichb
Porject file upgrade, remove telemetry webapp & cert factory changes for GDS
2017-06-28 14:16:43 -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
Marc Schier 55fee0497d Ensure console server registers and unregisters with LDS (#173) 2017-06-20 08:50:54 +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 3c52cf7761 - allow subjectnames with CN=xxx, O= etc.
- misc. bugfixes
- pen: set default security to highest
- pen: cert default lifetime 12 month
2017-04-27 14:21:47 +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
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 b0f55493e1 Fixed / 2017-02-16 15:57:02 +01:00
Erich Barnstedt a332f659e5 Adressed code review feedback. 2017-02-16 15:41:26 +01:00
Erich Barnstedt 986bca7b8a Fixed names for Linux 2017-02-14 14:04:33 +01:00
Erich Barnstedt d73a9cffa3 Changed back to original, individual store names. 2017-02-14 14:01:09 +01:00
Erich Barnstedt 322490661a Enable tracing. 2017-02-14 13:10:37 +01:00
Erich Barnstedt e17fe6b5f4 Updated console server config to use noew X509Store. 2017-02-14 11:29:43 +01:00
Martin Regen dcb49fd39b helper launchSettings.json for .NetCore.App platform 1.1 issue.
Workaround for Exception SystemExecutionEngine in various certificate functions:

Workaround:
set environment variable:
set COMPlus_ReadyToRunExcludeList=System.Security.Cryptography.X509Certificates

(see https://github.com/dotnet/corefx/issues/12412)
2017-01-21 18:44:19 +01:00
Martin Regen f8876e2f35 reduce usage of Task.Run
build debugType portable
2017-01-12 11:24:16 +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 a62d11c3fb Basic256Sha256 support 2016-12-02 22:35:00 +01:00
Martin Regen d72724e80c update known working security policies, disable auto accept 2016-11-12 09:00:09 +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 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
Erich Barnstedt 72bab7aa8a Added a warning message regarding auto accepting untrusted certs for debugging purposes. 2016-09-05 15:31:31 +02:00
Martin Regen 86d6f2ef76 Merge pull request #4 from mregen/ipv6_fix
support [IPv6] addresses in URLs.
2016-09-02 12:23:15 +02:00
Martin Regen 291ab27d95 support [IPv6] addresses in URLs.
Let console server auto accept client certs to simplify testing
2016-09-02 12:18:26 +02:00
Martin Regen f78dde41c3 Merge pull request #3 from mregen/ubuntu_certfixes
Merge Ubuntu certfixes and Readme update
2016-09-01 20:02:52 +02:00