Closed WillooWisp closed 2 months ago
@WillooWisp with #2733 this check will be temporarily disabled in the August Release. The check domain flag is there for a different purpose and not related to the application uri matching the application uri in the certificate. In general this message indicates an non-compliant certificate being used by the server.
@romanett I see, yes the problem is not only old servers but also certificates exposed with hostname as endpoint url which will then not match the local IP when connecting.
When will this August release show up, since end of August now?
@romanett do you know when this August release is coming out?
@WillooWisp it will come in the next week If everything goes by plan, If you need the fix asap you can use the nuget Preview Feed linked in the Main readme.md
@romanett I just tried the latest preview version '1.5.375.71-ECC-preview' and the result is unfortunately the same, it works when no authentication is in place, but with username/password it fails with 'Server did not return a Certificate matching the ApplicationUri specified in the EndpointDescription.' and now I have checkDomain set to true again. We are connecting against a local ip for the OPC Server. This all worked fine with version 1.5.373.121.
This Version is older, this is the Preview nuget feed based on latest master: https://opcfoundation.visualstudio.com/opcua-netstandard/_packaging?_a=feed&feed=opcua-preview%40Local
@romanett Okay, strange, I had the correct feed, but it installed preview '1.5.375.71-ECC-preview' instead of '1.5.374.107-preview', since 375 build number was newer. It works with 1.5.374.107-preview though if that is the expected version?
@romanett Any news on the August release?
@WillooWisp Release branch is already created, will come any day now after thorough testing:
https://github.com/OPCFoundation/UA-.NETStandard/tree/release/1.5.374
Type of issue
Current Behavior
When creating session with checkDomain set to false, and using a user identity with username and password, we get an exception. It works with no authentication however.
Opc.Ua.ServiceResultException: 'Server did not return a Certificate matching the ApplicationUri specified in the EndpointDescription.'
Expected Behavior
With checkDomain set to false we should not get the exception 'Server did not return a Certificate matching the ApplicationUri specified in the EndpointDescription.', even if we use authentication with username/password.
Steps To Reproduce
Use the sample reference client and connect to a server with local IP, where checkDomain set to false is required. Using no authentication will work, but requiring username/password does not work.
Environment
Anything else?
It works with older version, e.g. 1.5.373.121