vasupclicks.blogg.se

Kepware wiki
Kepware wiki








Opcua.ua.uaerrors._auto.BadInvalidArgument: One or more arguments are invalid.(BadInvalidArgument)įIrst of all, it seems like "UaStatusCodeError(self.value)" is a result given by Kepware, correct? I have checked and rechecked certificates, username, password,etc. name)įile "D:\Trabajo\microred_abb\python_files\venv\lib\site-packages\opcua\client\ua_client.py", line 93, in check_answerįile "D:\Trabajo\microred_abb\python_files\venv\lib\site-packages\opcua\ua\uatypes.py", line 231, in check Self.check_answer(data, " in response to " + request. Return _session(params)įile "D:\Trabajo\microred_abb\python_files\venv\lib\site-packages\opcua\client\ua_client.py", line 289, in activate_sessionĭata = self._nd_request(request)įile "D:\Trabajo\microred_abb\python_files\venv\lib\site-packages\opcua\client\ua_client.py", line 84, in send_request Self.activate_session(username=self._username, password=self._password, certificate=er_certificate)įile "D:\Trabajo\microred_abb\python_files\venv\lib\site-packages\opcua\client\client.py", line 422, in activate_session A distributed control system (DCS) is a computerised control system for a process or plant usually with many control loops, in which autonomous controllers are distributed throughout the system, but there is no central operator supervisory control. WARNING:_client.Socket:ServiceFault from server received in response to ActivateSessionRequestįile "D:/Trabajo/microred_abb/python_files/OPCUA_client_for_kepware.py", line 61, inįile "D:\Trabajo\microred_abb\python_files\venv\lib\site-packages\opcua\client\client.py", line 264, in connect Path_private_key = "private_key_example.pem"Ĭt_security_string("Basic256Sha256,SignAndEncrypt," + path_client_cert +"," + path_private_key + "," + path_server_cert + "")Ĭlient.application_uri = "" #self-signed certificate generated a "" URI

#Kepware wiki code

My python code is similar to the example "client-with-encryption.py" except that I also take into consideration the server certificate. Problem: everything worked with "Basic128Rsa15" and "Basic256" protocols but I struggle to obtain communication using 256Sha256. The kepware server is user protected with password.I exported my kepware server certificate (.der) so that it can be imported in my client (python).I generated my client self-signed certificate (.der) and its private key (.pem) and imported the certificate in the trusted client list of my kepware server.I am now struggling to get secure 256Sha256 communication. I started by confirming connection without any security policy, went on with basic 128Rsa15 and then Basic256. I am currently implementing a secure communication (Basic256Sha256) between my opcua client (python code) and server (KEPServerEX 6).








Kepware wiki