from my klaus:
Hi Diederik, this is a known bug in the OPC UA library underneath the bridge (gopcua), not in your config. Your S7-1500 lists several username token policies, with the old Basic128Rsa15 first. The library takes the first one, and Basic128Rsa15 only allows keys up to 2048 bits, while your PLC certificate is 3072 bits. So the secure channel itself (Basic256Sha256) is fine, and only encrypting the password fails. Switching security mode, policy or server profile won't change that, and neither will running the container outside UMH.
Workaround until the fix ships: in TIA Portal, disable Basic128Rsa15 in the PLC's OPC UA server security policies, so the legacy username policy disappears. If that's not possible, give the PLC a 2048-bit server certificate.
The fix is merged upstream (
https://github.com/gopcua/opcua/issues/912, fixed by #914). It reaches the bridge with the next gopcua release and the umh-core release after it. We're testing a release candidate soon; if you'd be up for trying that build against your 1500, let me know.