Commit Graph

288 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 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 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 dbef06aa82 Fix ip address parser, domain name check and reconnect (#333)
* bug fix in cert parser: return normalized ipaddress string instead of hex byte array string
* connect with domain cert check,
* fix ip address compares,
* add dialog to connect anyway if cert domain check fails
* fix reconnect case when cert domain check fails
2018-01-25 08:55:26 -07:00
Martin Regen 7bf9c79ba6 Fix icons in .Net apps (#332)
* fix windows form apps, when icon on the taskbar disappears but is still running
* use exceptiondlg where it was missing
* change GetAssemblyTimestamp, pe header is not containing a timestamp in .net core assemblies
2018-01-25 08:36:15 -07:00
Martin Regen 30d8414472 add travis build for mono 2018-01-09 17:17:40 +01:00
Martin Regen 9f8affb05f Determine RSA dispose at runtime 2018-01-09 15:38:38 +01:00
Martin Regen 1f444a5186 Revert "keep readable store open"
This reverts commit 217f03099b.
2018-01-09 13:58:32 +01:00
Martin Regen 6c417322ea Merge remote-tracking branch 'origin/master' into mono 2018-01-09 13:36:29 +01:00
Martin Regen ca5cfb69d0 Merge remote-tracking branch 'mregen/subjectcheck' into quickstart 2018-01-05 18:05:50 +01:00
Martin Regen d72a9f2361 bump up for next release 1.03.351 2018-01-05 17:04:43 +01:00
Martin Regen b627b89797 Merge version update from 1.03 2018-01-05 16:42:19 +01:00
Martin Regen b4d0c3200f Change versioning to allow for patching of nuget packages (#312)
* Fix library versions

* version properly for strong names
2018-01-05 16:31:05 +01:00
Martin Regen 390b481ea9 fix from stefano to pass cert creation 2017-12-22 13:54:32 +01:00
Martin Regen 217f03099b keep readable store open 2017-12-22 10:58:54 +01:00
Martin Regen 83365f3c05 return copy of enumeration, or mono may dispose Certificates 2017-12-21 16:42:50 +01:00
Martin Regen 806df6127d fix build 2017-12-21 15:58:07 +01:00
Martin Regen 032bc6ade7 remove all dispose from RSA objects to work around mono bug 2017-12-21 15:41:46 +01:00
Martin Regen 2e4d719a19 Revert "do not dispose keys on mono"
This reverts commit bdac9fa356.
2017-12-21 13:20:53 +01:00
Martin Regen 8e89b941ed Revert "missed a few usings..."
This reverts commit 4720125a37.
2017-12-21 13:20:43 +01:00
Martin Regen 4720125a37 missed a few usings... 2017-12-20 22:24:59 +01:00
Martin Regen bdac9fa356 do not dispose keys on mono 2017-12-20 16:35:25 +01:00
Martin Regen 256ac8e5bd False existing cert might be loaded if only subject is given in Application Configuration. Test the full CN= distiguished name entry to ensure the subjectname of the cert matches. 2017-12-13 12:22:00 +01:00
Martin Regen 5c09e5f869 return null for empty xml documents (#299) 2017-12-13 09:46:48 +01:00
Martin Regen 33c8c4d4c2 Merge pull request #284 from mregen/gds_work_certs
GDS Server updates and Standard server push configuration
2017-12-08 22:56:34 +01:00
Martin Regen 4345640c03 Fix CR feedback & travis macOS build fix (#36)
* improve gds creation test, verifiy integrity of returned certs

* split test runs to avoid file handle problem on macOS

* cr feedback
2017-12-08 22:55:27 +01:00
Martin Regen eeec2a8389 Update cert without restarting the TCP listener 2017-12-07 12:05:31 +01:00
Martin Regen 9926e40be8 my own CR feedback 2017-12-06 16:55:43 +01:00
AlinMoldovean 9dd62478ca Version number set to 1.03.350 in AssemblyVersion and Nuspec files 2017-12-06 17:23:07 +02:00
Martin Regen fb5a676209 Gds improvements for SPS demo (#35)
* fixes in gds client app to support server push

* race condition with netcore 2.0.3 with docker

* more server entries

* Revert "race condition with netcore 2.0.3 with docker"

This reverts commit d983452e41dc29c1f3d8c5ca1ae7aa683275a68e.

* listener socket loss if AcceptAsync returns synchronous

* crl store misup

* default port for sps

* comment all changes in respect to UA ANSIC server

* all SPS changes

* remove demo code
2017-12-05 14:33:25 +01:00
AlinMoldovean a18e74bdb1 Set type identifier for custom types before decode. 2017-11-29 16:20:14 +02:00
Martin Regen 89b0a652b7 listener socket loss if AcceptAsync returns synchronous 2017-11-28 13:58:25 +01:00
Martin Regen d78b614cb3 Revert "race condition during connect"
This reverts commit e5ce6ccd56.
2017-11-26 16:42:56 +01:00
Martin Regen b615cf20ea listener socket loss if AcceptAsync returns synchronous 2017-11-26 16:41:39 +01:00
Martin Regen e5ce6ccd56 race condition during connect 2017-11-25 13:31:13 +01:00
Martin Regen 05463e8790 Merge branch 'connect_race' into gds_work_certs 2017-11-21 16:26:17 +01:00
Martin Regen da07e3b430 race condition during connect, CTT client may hang on .Net Standard 2.0 server GetEndpoints call 2017-11-21 15:13:08 +01:00
Martin Regen 394f5baacf Implement cert update, more tests 2017-11-19 01:47:54 +01:00
Martin Regen 31f8b60dcb Always verify public/private key pairs after load 2017-11-16 23:13:45 +01:00
Martin Regen e2f23e6d6e Linux/macOS catch bad padding mode 2017-11-16 16:17:52 +01:00
Martin Regen 5de112d59b macOS: cannot verify public/private key with crypto op when keyUsage doesn't allow dataencipherment 2017-11-16 15:14:41 +01:00
Martin Regen e156a3c3da PEM support (#33) 2017-11-15 21:08:43 +01:00
Martin Regen 09fbb05752 Gds work travis (#32)
fix appveyor and travis builds
2017-11-15 09:45:28 +01:00
Martin Regen d2356df0fb fix warnings 2017-11-12 19:44:05 +01:00
Martin Regen 35f737d5af implement UpdateCertificate and self signed test case 2017-11-11 00:40:34 +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 edc8c89838 - add unit test client with nunit framework
- implement RegisterServer test case
2017-10-25 11:59:49 +02:00
Martin Regen beaab50040 lower API surface to netstandard1.3/net46 2017-10-24 14:01:43 +02:00