-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPC UA: Unsupported security policy #11511
Comments
Hi,
If the reported security policy of your OPC UA server is |
Hi, I also tried setting
but got the same error |
@R290 is this something you have come across before? |
Not something I've seen before... I can see that the error is coming from the gopcua library:
The @FHatCSW are you able to test your server using one of the gopcua library examples? Say: https://github.com/gopcua/opcua/blob/main/examples/read/read.go. This would allow us to determine if it is Telegraf or the Go OPC library. |
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you! |
FYI: I think I ran into this issue recently. I was able to track it down and fixed for the specific server. I created a PR for it, but I can´t say if that´s a general improvement. |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.23, Raspberry Pi 4B, Debian GNU/Linux 11 (bullseye)
Docker
Steps to reproduce
...
Expected behavior
I have implemented an OPC UA client with certificate-based authentication in a Docker container (docker-compose). The values are to be passed via Telegraf to InfluxDB and then on to Grafana.
However the connection via the Python client works, the one via Telegraf does not. The identical certificates are used.
Actual behavior
The Python client connects to the stored self-signed certificates. However, via Telegraf I get an error:
creating session signature: opcua: unsupported security policy .
The complete connection setup and the Docker logs show the successful connection setup via Python as well as the failed setup via Telegraf. In addition to the OPC UA client, there is also an MQTT broker (also certificate-based) that works.
As can be seen in the logs, the security policy is as follows:
SecurityMode=<MessageSecurityMode.SignAndEncrypt: 3>, SecurityPolicyUri='http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256'
Additional info
No response
The text was updated successfully, but these errors were encountered: