node-red-contrib-opcua
node-red-contrib-opcua copied to clipboard
Unable to use 'Use Credentials' and 'User Certificate' option together for OpcUa client!
Hi,
We are trying to establish OPC-UA Client Connection using "node-red-contrib-opcua 0.2.301".
We are using:
- Sign and Encrypt Basic256Sha256 Policy Certificates and
- Username and Password (User credentials)
It is not possible to select both options in Node-RED OPC-UA client, Only one of the check boxes can be selected.
It is either 'Use Credentials' or 'User Certificate' but not both, but the we needs to use both options in parallel.
Is it possible in some way or any future plan for the same?
User certificate means that you give own certificate file and private key file.
Use credentials means username and password are given.
thanks @mikakaraila
Can we not use both option together? As my server is configured in such a way to use both of them (due to additional security context).
Use Sign & Encrypt, Sign == username + password and Encrypt == certificates (managed by certificate manager).
Thanks @mikakaraila
If I understood correctly I can use "Sign&Encrypt" SecurityMode in such case to provide both "user credential" and "user certificate"
then it seems to me some problem with the UI element, because when I select checkout for "user credentials" then I can provide the user and password, But when I select "user certificate" the UI shifts to certificate/key.
The behavior of checkbox is something as radio button.
https://user-images.githubusercontent.com/39804807/225337116-55529f4a-4c7e-4ec9-9d75-947ff893a0da.mp4
I can not do something as below:
Only one option from should be active: Anonymous or Use credentials or User certificate. In principle it should be like in UaExpert and work as Radio button.
By the way client as it uses certificate manager creates own certificates to PKI folder (used as private key store). You dont have to give certificate file / private key file. Files are used only when user certificate is used. It needs openssl command to create it correctly so it contains user information as CN.
Hello, we have requirements from Customer where we have to connect to OPC-UA Server using Certificates AND Username/password. Which is currently not possible. Do you have any recommendation what should we do here? @mikakaraila TIA
This is normal & correct way: