Skip to content
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

CertProperties.path is of NoneType #81

Open
bluppfisk opened this issue May 18, 2022 · 2 comments
Open

CertProperties.path is of NoneType #81

bluppfisk opened this issue May 18, 2022 · 2 comments

Comments

@bluppfisk
Copy link

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.

@DominikRoB
Copy link

I have the same problem - found a workaround yet, @bluppfisk?

@bluppfisk
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants