Server sign and encrypt fails after connection setup and login #535
-
I am working to get a server up and running with sign and encrypt configuration. I used the server example from github as template for my server. As client I use UaExpert. For the server I took the certificate and key from the example and from UaExpert I exported its certificate to use in the server configuration. In this setup the server fails After the connection is setup and the user verified with some error. I cannot figure out what is causing this error. I hope someone can help. The error is Checking permissions for user User(role=<UserRole.User: 3>, name='UaExpert') The first 3 lines are loglines I added to uaprocessor.py to get some more info. Below my code
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The error is all mine. This line
needs to be changed into
and then ..... it works! |
Beta Was this translation helpful? Give feedback.
The error is all mine.
This line
server.set_security_policy([ua.SecurityPolicyType.Basic256Sha256_SignAndEncrypt], permission_ruleset=SimpleRoleRuleset)
needs to be changed into
server.set_security_policy([ua.SecurityPolicyType.Basic256Sha256_SignAndEncrypt], permission_ruleset=SimpleRoleRuleset())
and then ..... it works!