OPC UA Server Certificate, Authentication, Nodes|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
OPC UA Server Certificate, Authentication, Nodes
Avatar
Nilson Chalie
Member
Members
Forum Posts: 5
Member Since:
05/31/2020
sp_UserOfflineSmall Offline
1
08/05/2020 - 04:28
sp_Permalink sp_Print

Hi, I have downloaded the UA-.NETStandard-Samples-master project from OPCFoundation Github, and I’m trying to modify a server (to be specific, it’s the Quickstart Application – Empty Server) and add some function in the UI (like set Username, Password, add nodes,…)

I also have some questions for those function:

  • For the Authentication, what I’m doing is go to file “Quickstarts.EmptyServer.Config.xml”, and there are some xml nodes like this:

<UserTokenPolicies>

     <ua:UserTokenPolicy>

                 <ua:TokenType>Anonymous_0</ua:TokenType>

     </ua:UserTokenPolicy>

     <ua:UserTokenPolicy>

                <ua:TokenType>UserName_1</ua:TokenType>

    </ua:UserTokenPolicy>

</UserTokenPolicies>

 If I want my server accepts only Username “123” with Password “456”, what will the code above be like? I think I should delete the Anonymous_0, but I don’t know how the Username_1 works, and how to encrypt the password.

  • For the Certificate, if I go to folder “%CommonApplicationData%\OPC Foundation\pki\trusted”, then move the Client certificate to folder “rejected”, then the Client cannot connect to Server. So what I should do with Certificate tabs of my UI is to move the certificate file of each client between “trusted” and “rejected” folder, right?
  • For managing nodes, I think there’s a xml file in my project folder to initiate all nodes, right? However I cannot find it in the Quickstarts Empty Server. Can you point me that?
Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 14
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889