-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPCUA client should check the application URI of the server certifiate #2032
Comments
According to the standard part 4 - Service Release:
=> This suggest that the client must verify that the applicationUri presented in the endpoint descriptions and in the server certificate in the GetEndpointResponse match. |
I suggest the following modification:
|
The application Uri should always be checked against the information in the endpoint. |
Hi @GregoireG-C, is this topic no more an issue? We were planning to include your fix in the next release, please share if it is not necessary. |
It's still an issue. I closed it because you have added this one to a milestone. So I have not any reason to follow it. I will let you close it then. Best regards |
Hello, is there a recommended way to bypass this functionality other than modifying the code on my end as I am doing now? My use is case is that I often develop against opc-ua servers that are on internal LANs - so I setup a computer on that LAN and then use netsh to port proxy over. It looks like this causes the certificateApplicationUri to not match the applicationUri. I think it is because GetApplicationUriFromCertificate return's the URI of the PC that I am using as the proxy. I also want to be able to connect to servers even if they have invalid certificates in the future. |
Hi, my recommendation would be to use the "Security: None" endpoint as all the other endpoints need to follow the spec |
Thank you. That works great here. Below is what I added.
|
at this time the check has been removed to work around IOP issues. WIP #2731 |
Type of issue
Current Behavior
The OPCUA client verify the following points concerning the server certificate:
-The DNS match the server machine
...
But the client does not check the ApplicationUri of the server presented in its application certificate.
Expected Behavior
Th client should verify the applicationUri of the server certificate.
Steps To Reproduce
1.Compile sample client and standard UA server
2. Connect using sign or sign&encrypt to the server ; the server using a certificate presenting an applicationUri null or different form the one present into its configuration file
3. The client accept the connection.
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: