Hi there,

Having what looks like the same issue here trying to secure the server with 
a self-signed certificate. Both the client and the server run the same 
compatible, stable version 3.4.2. When I start the client as root, it 
connects to the server even though ca_certs is empty. But when the client 
runs with regular user permission, then it throws:

ERROR:tryton.common.common:Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/tryton/gui/window/dblogin.py", line 
614, in run
    if not common.test_server_version(host, port):
  File "/usr/local/lib/python2.7/dist-packages/tryton/common/common.py", 
line 241, in test_server_version
    version = rpc.server_version(host, port)
  File "/usr/local/lib/python2.7/dist-packages/tryton/rpc.py", line 67, in 
server_version
    result = connection.common.server.version(None, None)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python2.7/dist-packages/tryton/jsonrpc.py", line 
275, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
    response = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1034, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''

while the server says:

----------------------------------------
Exception happened during processing of request from ('::1', 54643, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 593, in 
process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 647, in __init__
    self.setup()
  File 
"/usr/local/lib/python2.7/dist-packages/trytond/protocols/jsonrpc.py", line 
285, in setup
    self.request = SSLSocket(self.request)
  File 
"/usr/local/lib/python2.7/dist-packages/trytond/protocols/sslsocket.py", 
line 13, in SSLSocket
    ssl_version=ssl.PROTOCOL_SSLv23)
  File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python2.7/ssl.py", line 143, in __init__
    self.do_handshake()
  File "/usr/lib/python2.7/ssl.py", line 305, in do_handshake
    self._sslobj.do_handshake()
SSLError: [Errno 1] _ssl.c:504: error:1407609C:SSL 
routines:SSL23_GET_CLIENT_HELLO:http request
----------------------------------------

I feel that it may be related to ~/.config/tryton/x.y/ca_certs but I 
haven't been successful in making it work so far.

Any help would be much appreciated.

Reply via email to