-
Notifications
You must be signed in to change notification settings - Fork 659
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
Implement support for password in client #42
Comments
Yes, there is an issue with the password implementation. I do not know how to encode it. it is probably just a matter of reading the doc , though.... so help welcome here |
Should this issue be combined into the other issue? |
yes there is already an issue on this #23 . you are welcome to try to solve this :-) To find out what should be there you can read the opc-ua specification (But I could not find anything) and/or start wireshark, set filter type to opcua, and connect with a client supporting encryption (uaexpert for example). then do the same with python-opcua and look at the difference in the ActivateSession message |
btw what server are you using? |
I am using an Arburg Injection Molding Machine that hosts its own opc-ua server |
That's interesting!. Do you manage to connect if you disable password? |
yesterday I registered a session between a client and a prosys server: |
I am not able to disable the password even though the security policy is none? When connecting with UaExpert I see: Looking at the Certificate UaExpert has with the server I can see that the Signature algorithm is sha1RSA and the Public key is RSA(1024 bits) I tried watching with wire shark but haven't figured anything out so far. Where do you take the typed password out of the connection url? |
password and encryption is supposed to be implemented for client now. Can someone test and resport? |
I am having the worst time trying to get python with pycrypto setup on my new computer. I will be able to test this out on Wednesday assuming I get pycrypto working. |
Master should not use pycrypto but cryptography module... But I am not sure On Mon, Dec 28, 2015, 23:25 mertz3hack notifications@github.com wrote:
|
Now I tested password encryption and it works against prosys server. Thanks @alkor |
That's great! |
I'm trying to connect using this: opc.tcp://admin:password@localhost:4096 and I get this error: showing error: name 'uri' is not defined 1. If I enable anonymous access I can do it. |
@joaopmrod is the error you are getting similar to the one in this issue #135 |
Looking for help understanding a connection issue.
I am trying to connect to a machine hosted opc ua server using
client = Client("opc.tcp://user:password@192.168.15.30:4880/Arburg")
I am getting the following error and am not sure if this is something I am doing or if this is not supported yet.
Traceback (most recent call last):
File "example-client.py", line 41, in
client.connect()
File "C:\opcua\opcua\client.py", line 111, in connect
self.activate_session()
File "C:\opcua\opcua\client.py", line 199, in activate_session
params.UserIdentityToken.Password = bytes(self.server_url.password)
TypeError: string argument without an encoding
WARNING:opcua.binary_client:Received an error message type
WARNING:opcua.binary_client:MessageAbort(error:StatusCode(BadInvalidArgument), reason:)
The text was updated successfully, but these errors were encountered: