Comments (17)
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
from python-opcua.
Should this issue be combined into the other issue?
Do you know which documentation this may be covered in? I would be interested in trying to solve the issue.
from python-opcua.
yes there is already an issue on this #23 . you are welcome to try to solve this :-)
look at line 199 in client.py. We need to encrypt password and set correct encryption in line under.
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
from python-opcua.
btw what server are you using?
from python-opcua.
I am using an Arburg Injection Molding Machine that hosts its own opc-ua server
from python-opcua.
That's interesting!. Do you manage to connect if you disable password?
from python-opcua.
yesterday I registered a session between a client and a prosys server:
server return 2 supported PolicyId: username_basic256 and username_basic128
and security policy URI is set to http://opcfoundation.org/UA/SecurityPolicy#Basic256
when sending password in activateSession it refers to following EncryptionAlgorythm
http://www.w3.org/2001/04/xmlenc#rsa-oaep
I have no idea where the key for the encryption is taken from ...
from python-opcua.
I am not able to disable the password even though the security policy is none?
When connecting with UaExpert I see:
Found security policy 'http://opcfoundation.org/UA/SecurityPolicy#None'
ApplicationUri: 'uri://Arburg/App/Selogica/direct'
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)
You can view the public key in the windows certificate Details?
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?
from python-opcua.
password and encryption is supposed to be implemented for client now. Can someone test and resport?
from python-opcua.
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.
from python-opcua.
Master should not use pycrypto but cryptography module... But I am not sure
all patch have been merged
On Mon, Dec 28, 2015, 23:25 mertz3hack [email protected] wrote:
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.—
Reply to this email directly or view it on GitHub
#42 (comment)
.
from python-opcua.
I merged the last patch removing pycrypto ( I hope I did not break to much things for you @alkor !!!). Everything is in place for password encryption, but it might no be implemented yet. I am waiting for @alkor to merge the rest of his crypto stuff
from python-opcua.
No errors about pycrypto anymore.
from python-opcua.
Now I tested password encryption and it works against prosys server. Thanks @alkor
from python-opcua.
That's great!
from python-opcua.
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.
from python-opcua.
@joaopmrod is the error you are getting similar to the one in this issue #135
unfortunately in that specific case I am not able to enable anonymous access
from python-opcua.
Related Issues (20)
- What is TIMESTAMP UNSPECIFIED? HOT 1
- Getting "BadSecurityChecksFailed" every few minutes for constant read requests HOT 2
- Problem with set value in OPC UA S7-1200 HOT 7
- Unable to subscribe to datachange when using Datavalue
- UA-Client reconciliate subscription not working HOT 4
- Duplicate endpoint when restarting server
- Cannot get value from alias HOT 14
- python OPCUA package installation failed in Linux ARM32V7 HOT 4
- Continues connection to opc ua - kepserver, and flask rest api HOT 1
- Callback function or event to intercept a write request on server
- How to use method call in client with complex arguments HOT 14
- Transfer Subscription Request
- SourceTime Stamp Issue HOT 1
- My simple python server error
- Unable to change variable value to True HOT 12
- Writing variables to ABB IRC5 controller using set_value() function HOT 4
- AttributeError: 'bytearray' object has no attribute 'public_key' HOT 7
- Disconnection of server session after 1 minute-TimeoutError
- Timeout error
- How to get node value HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-opcua.