Professional Communication
Software Development Tools

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.

Client supplied certificate instead of username and password

More
18 Dec 2025 21:16 #14506 by Cwardltu
Hello,

I am trying to find out how to use a client certificate as the token info for a server that does not allow anon users. 

the goal is a user can configue a cerificate, user/pass, or both to validate its connection to the server. I can not find much documentation on how to do such a thing or in the examples OPCLabs has provided. 

I have provided my most recent attempt here:
Code:
        switch (state)         {             case AuthenticationType.UsernamePassword:                 Endpoint.UserIdentity.UserNameTokenInfo = new OpcLabs.BaseLib.IdentityModel.User.UserNameTokenInfo(userName, password);                 break;             case AuthenticationType.Certificate:                 EasyUAApplication.Instance.ApplicationParameters.ApplicationManifest.InstanceOwnStorePath = certificatePath;                 break;             case AuthenticationType.Both:                 Endpoint.UserIdentity.UserNameTokenInfo = new OpcLabs.BaseLib.IdentityModel.User.UserNameTokenInfo(userName, password);                 EasyUAApplication.Instance.ApplicationParameters.ApplicationManifest.InstanceOwnStorePath = certificatePath;                 break;         }

 

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

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