opcua-client-gui
opcua-client-gui copied to clipboard
CertProperties.path is of NoneType
I select Basic256, SignAndEncrypt, and paths to a certificate and a private key file. When clicking connect, I get:
File "/home/redacted/.local/lib/python3.10/site-packages/asyncua/crypto/uacrypto.py", line 26, in load_certificate
_, ext = os.path.splitext(path)
File "/usr/lib/python3.10/posixpath.py", line 118, in splitext
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
uaclient.mainwindow - WARNING - showing error: %s')
Seems to make sense to me because load_certificate is done with CertProperties which is a dataclass, but constructed from the security string it never gets assigned its path attribute.
I have the same problem - found a workaround yet, @bluppfisk?
I ended up writing a Python script to do what I needed to do which was really just discovering the structure and pulling some data.