Replies: 6 comments 25 replies
-
a valid x509v3 certificate? matching uri and ip in "subjectaltname"!? its a bad idea to use example certs... they might be expired and or with not matching content... |
Beta Was this translation helpful? Give feedback.
-
I took the certificate and the pem from the github ..
Is there a tool to create some certificate compatible to x509x3?
Von: Andreas Heine ***@***.***>
Gesendet: Donnerstag, 7. Oktober 2021 15:59
An: FreeOpcUa/python-opcua ***@***.***>
Cc: pfetrial ***@***.***>; Author ***@***.***>
Betreff: Re: [FreeOpcUa/python-opcua] encrypted connection to OPC UA server (Discussion #1396)
Do you see something I missed ?
a valid x509v3 certificate? matching uri and ip in "subjectaltname"!?
which is trusted in prosys server?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1396 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAOAXGTYSQLJGMAI7XDZUMLUFWRRTANCNFSM5FRLHCWQ> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://github.com/notifications/beacon/AAOAXGUDEKNTQTLJ67R6563UFWRRTA5CNFSM5FRLHCW2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAALAF6Q.gif>
|
Beta Was this translation helpful? Give feedback.
-
ok I tried to generate a pem and der file with openssl and If use these file to connect to a server , it gives me Have you an idea what is wrong ? |
Beta Was this translation helpful? Give feedback.
-
Hi Andreas, Thanks a lot for taking the time to answer me. This makes sense because i always got the error message "ssl.conf does not exist". Can I put anything in the subject alt name as long as it is the same in the python code? Will try it right now and let you know how it goes. Thanks again |
Beta Was this translation helpful? Give feedback.
-
Hi, maybe some solution. I'm trying to create a server and connect to a client, but I can't do it even with UA Expert. Attached generated project files. Error Server: |
Beta Was this translation helpful? Give feedback.
-
I'm having trouble with this too after I followed the examples. I got the SSL Basic256sha256 to work once; by "work" I mean I say the cert show up in the OPCUA Configuration/Trusted Clients to allow me to trust. But trying to repeat this, I mucked something and can't un-muck it. My ssl.conf:
Then I run:
And python code run:
... and later:
And when I run my app:
My app is called Topserver Agent. The rest is from the caught exception. Thoughts @AndreasHeine ? |
Beta Was this translation helpful? Give feedback.
-
hello
I'm trying to connect a python client with the Prosys OPC UA server. I have started with the sample bellow ( Official sample):
I can't have a connection because the python have an Exception:
WARNING:opcua.uaprotocol:Received an error: MessageAbort(error:StatusCode(BadSecurityChecksFailed), reason:Bad_SecurityChecksFailed (code=0x80130000, description="An error occurred verifying security."))
CRITICAL:opcua.client.ua_client.Socket:Received an error: MessageAbort(error:StatusCode(BadSecurityChecksFailed), reason:Bad_SecurityChecksFailed (code=0x80130000, description="An error occurred verifying security."))
ERROR:opcua.client.ua_client.Socket:Protocol Error
Traceback (most recent call last):
File "C:\Python38\lib\site-packages\opcua\client\ua_client.py", line 101, in _run
self._receive()
File "C:\Python38\lib\site-packages\opcua\client\ua_client.py", line 121, in _receive
self._call_callback(0, ua.UaStatusCodeError(msg.Error.value))
File "C:\Python38\lib\site-packages\opcua\client\ua_client.py", line 129, in _call_callback
raise ua.UaError(
opcua.ua.uaerrors._base.UaError: No future object found for request: 0, callbacks in list are dict_keys([1])
ERROR:concurrent.futures:exception calling callback for <Future at 0x261bb51d040 state=cancelled>
Traceback (most recent call last):
File "C:\Python38\lib\concurrent\futures_base.py", line 328, in _invoke_callbacks
callback(self)
File "C:\Python38\lib\site-packages\opcua\client\ua_client.py", line 201, in clb
response = struct_from_binary(ua.OpenSecureChannelResponse, future.result())
File "C:\Python38\lib\concurrent\futures_base.py", line 430, in result
raise CancelledError()
concurrent.futures._base.CancelledError
Traceback (most recent call last):
File "C:\pfe\python_security\clientminimal.py", line 19, in
client.connect()
File "C:\Python38\lib\site-packages\opcua\client\client.py", line 275, in connect
self.open_secure_channel()
File "C:\Python38\lib\site-packages\opcua\client\client.py", line 335, in open_secure_channel
result = self.uaclient.open_secure_channel(params)
File "C:\Python38\lib\site-packages\opcua\client\ua_client.py", line 275, in open_secure_channel
return self._uasocket.open_secure_channel(params)
File "C:\Python38\lib\site-packages\opcua\client\ua_client.py", line 209, in open_secure_channel
response = clb.future.result(self.timeout)
File "C:\Python38\lib\concurrent\futures_base.py", line 441, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError
Do you see something I missed ?
Thx you
Beta Was this translation helpful? Give feedback.
All reactions