Hi, I am trying to use TLS for secure channel between Ryu controller and
OpenvSwitch.
I tried based on this tutorial.
http://ryu.readthedocs.org/en/latest/tls.html
But there is some error when applying this command
$ ryu-manager --ctl-privkey ctl-privkey.pem --ctl-cert ctl-cert.pem
--ca-certs cacert.pem --verbose ../switch_ready.py
After the command, messages below displayed.
-------------------------
loading app ../switch_ready.py
loading app ryu.controller.ofp_handler
instantiating app ../switch_ready.py of SimpleSwitch13
instantiating app ryu.controller.ofp_handler of OFPHandler
BRICK SimpleSwitch13
CONSUMES EventOFPSwitchFeatures
BRICK ofp_event
PROVIDES EventOFPSwitchFeatures TO {'SimpleSwitch13': set(['config'])}
CONSUMES EventOFPEchoRequest
CONSUMES EventOFPPortDescStatsReply
CONSUMES EventOFPHello
CONSUMES EventOFPErrorMsg
CONSUMES EventOFPSwitchFeatures
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
52, in _launch
func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
112, in wrap_and_handle
handle(ssl.wrap_socket(sock, **ssl_args), addr)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 343, in wrap_socket
return GreenSSLSocket(sock, *a, **kw)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 65, in __init__
ca_certs, do_handshake_on_connect and six.PY2, *args, **kw)
File "/usr/lib/python2.7/ssl.py", line 579, in __init__
self.do_handshake()
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 241, in do_handshake
super(GreenSSLSocket, self).do_handshake)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 110, in _call_trampolining
return func(*a, **kw)
File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
52, in _launch
func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
112, in wrap_and_handle
handle(ssl.wrap_socket(sock, **ssl_args), addr)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 343, in wrap_socket
return GreenSSLSocket(sock, *a, **kw)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 65, in __init__
ca_certs, do_handshake_on_connect and six.PY2, *args, **kw)
File "/usr/lib/python2.7/ssl.py", line 579, in __init__
self.do_handshake()
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 241, in do_handshake
super(GreenSSLSocket, self).do_handshake)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 110, in _call_trampolining
return func(*a, **kw)
File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
52, in _launch
func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line
112, in wrap_and_handle
handle(ssl.wrap_socket(sock, **ssl_args), addr)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 343, in wrap_socket
return GreenSSLSocket(sock, *a, **kw)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 65, in __init__
ca_certs, do_handshake_on_connect and six.PY2, *args, **kw)
File "/usr/lib/python2.7/ssl.py", line 579, in __init__
self.do_handshake()
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 241, in do_handshake
super(GreenSSLSocket, self).do_handshake)
File
"/home/honma/.local/lib/python2.7/site-packages/eventlet/green/ssl.py",
line 110, in _call_trampolining
return func(*a, **kw)
File "/usr/lib/python2.7/ssl.py", line 808, in do_handshake
self._sslobj.do_handshake()
SSLEOFError: EOF occurred in violation of protocol (_ssl.c:590)
-------------------------
Is there any wrong with my procedure ?
Regards,
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel