Professional Communication
Software Development Tools

OPC Foundation member and certified logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions or issues. You do not have to own a commercial license in order to use the OPC Labs supportOur team is actively monitoring the forums, and provides replies as soon as possible.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible.

Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

EasyUAClient SignAndEncrypt Basic256Sha256 Username and Password

More
27 Jul 2026 06:24 #14662 by AlexSFromG
Hello People, 

i need some help. 
My OPC-Admin gave me a username and a passwort. He said the security mode is "SignAndEncrypt" and the Security Police "Basic256Sha256".

How can I use this information to connect to the server? 

My code goes like ...


            Dim myEndpointDescriptorString = txtEndpointDescriptor.Text

            Dim myEndpointDescriptor As New UAEndpointDescriptor(txtEndpointDescriptor.Text)
            myEndpointDescriptor.UserIdentity.UserNameTokenInfo.UserName = "xxxxxxxxx"
            myEndpointDescriptor.UserIdentity.UserNameTokenInfo.Password = "yyyyyyyyyyy"

            Dim myC As New EasyUAClient()

            Dim value As String = myC.ReadValue(myEndpointDescriptor, NodeDescriptor)

But this cannot work as the info for security mode and policy are missing. 

Is there an example how to do it? Or do you have a hint for me?

Best regards
Alex 

Please Log in or Create an account to join the conversation.

Moderators: supportvaclav.zaloudek
Time to create page: 0.111 seconds