← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 682579] Re: SSLError: [Errno 336265218] _ssl.c:339: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib

 

I've just followed some instructions here: http://www.abdelfettah.com
/open-source/securiser-la-communication-clientserveur-openerp to create
a self-signed cert and key to test out secure access to openerp 6.

I'm getting the same error as above.

Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/service/websrv_lib.py", line 528, in _handle_request2
    self.process_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 307, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/share/pyshared/openerp-server/service/websrv_lib.py", line 246, in __init__
    SocketServer.StreamRequestHandler.__init__(self,request,client_address,server)
  File "/usr/lib/python2.6/SocketServer.py", line 614, in __init__
    self.setup()
  File "/usr/share/pyshared/openerp-server/service/websrv_lib.py", line 465, in setup
    ssl_version=ssl.PROTOCOL_SSLv23)
  File "/usr/lib/python2.6/ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "/usr/lib/python2.6/ssl.py", line 113, in __init__
    cert_reqs, ssl_version, ca_certs)
SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib

I've tried to build the cert and key twice have tried various
permissions on the files.

The server is running Ubuntu 10.04LTS and the openerp-server-6.0.1.deb
downloaded from the openerp website.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/682579

Title:
  SSLError: [Errno 336265218] _ssl.c:339: error:140B0002:SSL
  routines:SSL_CTX_use_PrivateKey_file:system lib

Status in OpenERP Server:
  Incomplete

Bug description:
  I can't connect to a remote server using the secure port, I dot this
  error in the server output :

  
  Traceback (most recent call last):
    File "/home/openerp/openerp/server/bin/service/websrv_lib.py", line 527, in _handle_request2
      self.process_request(request, client_address)
    File "/usr/lib/python2.6/SocketServer.py", line 309, in process_request
      self.finish_request(request, client_address)
    File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "/home/openerp/openerp/server/bin/service/websrv_lib.py", line 245, in __init__
      SocketServer.StreamRequestHandler.__init__(self,request,client_address,server)
    File "/usr/lib/python2.6/SocketServer.py", line 616, in __init__
      self.setup()
    File "/home/openerp/openerp/server/bin/service/websrv_lib.py", line 464, in setup
      ssl_version=ssl.PROTOCOL_SSLv23)
    File "/usr/lib/python2.6/ssl.py", line 338, in wrap_socket
      suppress_ragged_eofs=suppress_ragged_eofs)
    File "/usr/lib/python2.6/ssl.py", line 118, in __init__
      cert_reqs, ssl_version, ca_certs)
  SSLError: [Errno 336265218] _ssl.c:339: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib

  In fact, I don't understand the error, so if it's not a bug, maybe you
  could make the error easier to understand ?





References