Replies: 1 comment 5 replies
-
https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples/server-with-encryption.py cert_user_manager = CertificateUserManager()
await cert_user_manager.add_user("certificates/peer-certificate-example-1.der", name='test_user')
server = Server(user_manager=cert_user_manager) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
complete beginner here. I am trying to establish a server on Raspberry pi that would have certification based authentication. I managed to create a simple server with no security policy, however I would now like to do a certificate based authentication.
I used generate-certificates.sh to generate certificates. I modified it slightly and added @altnames in subjectAltNames. I then wrote different IP and DNS addresses from devices that would be allowed to connect to server. Then I tried something with using the server-with-encryption.py, however, this is probably only the encryption part and not authentication. I did not work because there was an error that User does not have permissions to do that.
I am now a bit confused on how to continue. Does opcua-asyncio even support certificate based authentication? If so, can you give me an example or point me somewhere so I can read about it? If it does not, can you maybe suggest how to approach this problem with some different ideas?
Sorry if something is not okay with the post, I am posting for the first time.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions