Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Self signed SSL certificates for a fixed IP to use with Beremiz/Bananapi (PYRO)

Status
Not open for further replies.

r_usso

Newbie level 6
Joined
Jun 24, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,354
I have searched for this everywhere but was unable to find the answer.

I am using Beremiz (https://www.beremiz.org/). It uses PYRO to communicate between the server and client. The server is executed in a linux PC system and the client is executed in a Banana Pi. The client declares itself in the following address:

Code:
pi@bananapi:~/Beremiz/beremiz$ python Beremiz_service.py -i 192.168.2.6
WAMP import failed : No module named autobahn.twisted
Http interface port : 8009
Pyro port : 3000
Pyro object's uri : 
PYRO://192.168.2.6:3000/7f00010104be63eb2d0a9b6573161fc2
Current working directory : /home/pi/Beremiz/beremiz

The server connects to that address. Now I have to secure the connection so I have to use:

PYROS://192.168.2.6:3000

I have checked the source code of Beremiz and saw that it only checks "client.key" and "client.crt" for the ssl verification. I have created certificates and tried with common name "192.168.2.6" and "192.168.2.6:3000".

But whenever I try to connect using this certificates I get the following error from the server side:

Code:
PYRO connecting to URI : PYROS://192.168.2.6:3000
PYRO using certificates in '/home/russo/Beremiz/StringTest/certs' 
Traceback (most recent call last):
  File "/home/russo/Beremiz/beremiz/connectors/PYRO/__init__.py", line 109, in catcher_func
    return func(*args, **kwargs)
  File "/home/russo/Beremiz/beremiz/connectors/PYRO/__init__.py", line 126, in <lambda>
    if PyroCatcher(lambda: RemotePLCObjectProxy.GetPLCstatus())() is None:
  File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 499, in __getattr__
    result=self.findattr(attr)
  File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 483, in findattr
    self._attr_cache[attr] = self._r_ga(attr)
  File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 478, in _r_ga
    return _RemoteMethod(self._invokePYRO, "_r_ha") (attr)  # hasattr
  File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 381, in __call__
    return self.__send(self.__name, args, kwargs)
  File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 455, in _invokePYRO
    self.adapter.bindToURI(self.URI)
  File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 865, in bindToURI
    sock.connect((URI.address, URI.port))
  File "/usr/lib/python2.7/dist-packages/M2Crypto/SSL/Connection.py", line 179, in connect
    ret = self.connect_ssl()
  File "/usr/lib/python2.7/dist-packages/M2Crypto/SSL/Connection.py", line 172, in connect_ssl
    return m2.ssl_connect(self.ssl)
SSLError: unknown protocol

Cannot get PLC status - connection failed.
Connection failed to PYROS://192.168.2.6:3000!

Any help, suggestions, or link to answer is highly appreciated.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top