How to reuse already trusted certificate in .NET OPC UA client|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to reuse already trusted certificate in .NET OPC UA client
Avatar
Benjamin Hodzic_1
Member
Members
Forum Posts: 3
Member Since:
06/22/2023
sp_UserOfflineSmall Offline
1
08/27/2024 - 01:54
sp_Permalink sp_Print sp_EditHistory

The .NET client, when restarted, fails to establish the connection. I think it fails to find the certificate which is already trusted in the store. (The certificate is already trusted by the server)
Here are the code screenshots:

View post on imgur.com

View post on imgur.com

Any help with this? Error establishing a connection: Error received from remote host: BadSecurityCheecksFailed

Avatar
Randy Armstrong
Admin
Forum Posts: 1537
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/28/2024 - 03:07
sp_Permalink sp_Print

BadSecurityCheecksFailed = check the server logs for the actual error. (error suppressed to reduce info hackers can use).

Avatar
Benjamin Hodzic
New Member
Members
Forum Posts: 1
Member Since:
01/30/2023
sp_UserOfflineSmall Offline
3
08/29/2024 - 01:07
sp_Permalink sp_Print

It says the cert has to be trusted. I do that manually but the client doesn't know when it got trusted. Is there an event handler or something similar?

Avatar
Randy Armstrong
Admin
Forum Posts: 1537
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
08/30/2024 - 02:24
sp_Permalink sp_Print

If it is coming from the Server then the Server needs to be told to trust the Client certificate.

The client then has to trust the Server certificate in separate step.

Code to manage certificates on  the client side is here:

https://github.com/OPCFoundati.....AClient.cs

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 27
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1415
Posts: 4778