diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-18 20:30:33 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-18 20:30:33 +0100 |
| commit | 70381b3381d77845dbc04fd521b729b7098134a5 (patch) | |
| tree | 4fc78178ab9fbeac32c9a7cf7f154fd1233c32ca /tests | |
| parent | 02e518fd27b43d0d452a264304de7b3d38a58ef6 (diff) | |
| download | BobinkCOpcUa-70381b3381d77845dbc04fd521b729b7098134a5.tar.gz BobinkCOpcUa-70381b3381d77845dbc04fd521b729b7098134a5.zip | |
Extract createUnsecureClientConfig, fix None endpoint negotiation
UA_ClientConfig_setDefault leaves securityMode at SignAndEncrypt,
so unsecure clients failed endpoint negotiation when the LDS only
offered None endpoints. Extract the unsecure client setup into
createUnsecureClientConfig() which explicitly sets securityMode and
securityPolicyUri to None.
Also enable discovery-only None endpoint on ServerRegister so
unencrypted clients can discover it, and update the unsecure_anonymous
test configs to run fully without encryption.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unsecure_anonymous/client.conf | 7 | ||||
| -rw-r--r-- | tests/unsecure_anonymous/server_lds.conf | 2 | ||||
| -rw-r--r-- | tests/unsecure_anonymous/server_register_client.conf | 6 |
3 files changed, 2 insertions, 13 deletions
diff --git a/tests/unsecure_anonymous/client.conf b/tests/unsecure_anonymous/client.conf index d93000e..c6fd6c9 100644 --- a/tests/unsecure_anonymous/client.conf +++ b/tests/unsecure_anonymous/client.conf @@ -1,14 +1,7 @@ # Client — test: unsecure_anonymous -# Has certs for encryption support (needed to negotiate with the secured -# LDS) but no securityMode/securityPolicy — lets the client auto-select -# the best available endpoint on each server. applicationUri = urn:localhost:bobink:Client -# certificate = certs/Client_cert.der -# privateKey = certs/Client_key.der -# trustStore = certs/trust/client -# securityMode = None securityPolicy = None diff --git a/tests/unsecure_anonymous/server_lds.conf b/tests/unsecure_anonymous/server_lds.conf index c5808bd..4ebbf33 100644 --- a/tests/unsecure_anonymous/server_lds.conf +++ b/tests/unsecure_anonymous/server_lds.conf @@ -1,5 +1,5 @@ # ServerLDS — test: unsecure_anonymous -# Secured LDS with discovery-only None endpoint. +# Unsecured LDS (no encryption). port = 14840 applicationUri = urn:localhost:bobink:ServerLDS diff --git a/tests/unsecure_anonymous/server_register_client.conf b/tests/unsecure_anonymous/server_register_client.conf index c2ae348..cae7fef 100644 --- a/tests/unsecure_anonymous/server_register_client.conf +++ b/tests/unsecure_anonymous/server_register_client.conf @@ -1,12 +1,8 @@ # ServerRegister client config — test: unsecure_anonymous -# Registers with the secured LDS over an encrypted channel. +# Registers with the LDS without encryption. applicationUri = urn:localhost:bobink:ServerRegister -certificate = certs/ServerRegisterClient_cert.der -privateKey = certs/ServerRegisterClient_key.der -trustStore = certs/trust/server_register_client - securityMode = None securityPolicy = None |
