Untrusted certificate errors when running a Local Discovery Server|OPC UA Implementation: Stacks, Tools, and Samples|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
Untrusted certificate errors when running a Local Discovery Server
Avatar
Paul Fake
Member
Members
Forum Posts: 16
Member Since:
04/05/2021
sp_UserOfflineSmall Offline
1
04/27/2021 - 15:06
sp_Permalink sp_Print

I’ve installed the OPC UA Local Discovery Server.  It is running fine, and I can use it to discover my OPC UA server.  The problem is, my OPC UA server complains every 30 seconds about the Local Discovery Server’s certificate being untrusted.  I’ve installed the certificate (ualdscert.der) to the trusted Windows store, and I have placed a copy of it in my server’s configured trusted folder.  Neither of these things makes the messages go away.  What am I missing here?

Avatar
Randy Armstrong
Admin
Forum Posts: 1580
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
04/27/2021 - 15:49
sp_Permalink sp_Print

the Windows trusted store is not relevant.

if placing the LDS cert in the servers trust list does not work then:

1) You put the wrong cert in the trust list;

2) The server trust list is not where you think it is;

3) There is some other validation error (i.e. expired certificate);

4) A bug in the server logic.

Avatar
Paul Fake
Member
Members
Forum Posts: 16
Member Since:
04/05/2021
sp_UserOfflineSmall Offline
3
04/28/2021 - 09:26
sp_Permalink sp_Print

Thanks.  It turns out the problem was, as impertinent as it may sound, related to how we are trying to circumvent the need for a complete configuration file by feeding the ApplicationInstance a set of defaults programmatically.  The certificate store logic wasn’t being initialized properly that way.

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