Write method of the TrustListType|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
Write method of the TrustListType
Avatar
Robin Barrucand
New Member
Members
Forum Posts: 1
Member Since:
06/03/2022
sp_UserOfflineSmall Offline
1
02/23/2023 - 03:03
sp_Permalink sp_Print

According §7.5.2 part 12 v1.04, the TrustListType defines a FileType object and its Write method takes a ByteString as input argument.
The TrustList file is a UA Binary encoded stream.

Should the ByteString in the Write method be a list of certificates in PEM encoded form to unbind each one?
(-----BEGIN/END CERTIFICATE-----)

For comparison, the GetRejectedList method of the Push model (§7.7.7 part 12 v1.04) returns a ByteString array and each item is a DER encoded form of certificate.
How to manage the encoding format of several certificates with a single ByteString for the Write method of the TrustListType?

Thanks!

Avatar
Randy Armstrong
Admin
Forum Posts: 1457
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/23/2023 - 04:21
sp_Permalink sp_Print

You need to read the entire sentence:

The TrustList file is a UA Binary encoded stream containing an instance of TrustListDataType (see 7.8.2.6).

IOW, the ByteString is an instance TrustListDataType encoded using the UA Binary encoding rules.

The TrustListDataType  contains ByteString arrays which are lists of DER encoded Certificates.

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