[Calendar and Contacts Server] #380: Server throughs an exeption when configured to use SSL
#380: Server throughs an exeption when configured to use SSL --------------------------------------+------------------------------------- Reporter: kristian@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Crash/data loss Keywords: carddav ssl | --------------------------------------+------------------------------------- Hi, I set up the calendarserver (svn trunk) on ubuntu lucid. Everything works fine, until i try to connect to the caldav server via SSL. Unencrypted connect is no problem, as is connecting to the CardDAV server via SSL. Only CalDAV in connection with SSL causes the following error: {{{ 2010-06-23 22:34:24+0200 [-] [caldav-1] [-] Unhandled Error 2010-06-23 22:34:24+0200 [-] [caldav-1] Traceback (most recent call last): 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/python/log.py", line 69, in callWithContext 2010-06-23 22:34:24+0200 [-] [caldav-1] return context.call({ILogContext: newCtx}, func, *args, **kw) 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/python/context.py", line 59, in callWithContext 2010-06-23 22:34:24+0200 [-] [caldav-1] return self.currentContext().callWithContext(ctx, func, *args, **kw) 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/python/context.py", line 37, in callWithContext 2010-06-23 22:34:24+0200 [-] [caldav-1] return func(*args,**kw) 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist- packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite 2010-06-23 22:34:24+0200 [-] [caldav-1] why = getattr(selectable, method)() 2010-06-23 22:34:24+0200 [-] [caldav-1] --- <exception caught here> --- 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twext/internet/sendfdport.py", line 279, in doRead 2010-06-23 22:34:24+0200 [-] [caldav-1] transport = self.transportFactory(skt, description, protocol) 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twext/web2/metafd.py", line 104, in createTransport 2010-06-23 22:34:24+0200 [-] [caldav-1] transport.startTLS(self.contextFactory) 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 761, in startTLS 2010-06-23 22:34:24+0200 [-] [caldav-1] if Connection.startTLS(self, ctx, server): 2010-06-23 22:34:24+0200 [-] [caldav-1] File "/usr/local/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 402, in startTLS 2010-06-23 22:34:24+0200 [-] [caldav-1] self.socket = SSL.Connection(ctx.getContext(), self.socket) 2010-06-23 22:34:24+0200 [-] [caldav-1] exceptions.AttributeError: 'NoneType' object has no attribute 'getContext' 2010-06-23 22:34:24+0200 [-] [caldav-1] }}} Both instances are run with the same user, and should use the same key and certificate. I have no idea what to check or change. -- Ticket URL: <http://trac.calendarserver.org/ticket/380> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#380: Server throughs an exeption when configured to use SSL --------------------------------------+------------------------------------- Reporter: kristian@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Crash/data loss Keywords: carddav ssl | --------------------------------------+------------------------------------- Comment(by ian@…): Any idea how to fix this? I'm experiencing the same issue. It works if you use the run script but not if you try to install/run the daemon. If it makes any difference, I'm using a 64 bit system although it looks like the original poster was not. -- Ticket URL: <http://trac.calendarserver.org/ticket/380#comment:2> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#380: Server throughs an exeption when configured to use SSL --------------------------------------+------------------------------------- Reporter: kristian@… | Owner: wsanchez@… Type: Defect | Status: new Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Crash/data loss Keywords: carddav ssl | --------------------------------------+------------------------------------- Comment(by ian@…): FYI for anyone that runs into this later. My problem was that the server didn't like the format of my certificate/private key. I had an encrypted private key and .crt server and intermediate certificates. After turning them into a .pem everything worked. -- Ticket URL: <http://trac.calendarserver.org/ticket/380#comment:4> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
#380: Server throughs an exeption when configured to use SSL ---------------------------------------+------------------------------------ Reporter: kristian@… | Owner: wsanchez@… Type: Defect | Status: closed Priority: 5: Not set | Milestone: Component: Calendar Server | Severity: Crash/data loss Resolution: Configuration changed | Keywords: carddav ssl Radar: | ---------------------------------------+------------------------------------ Changes (by wsanchez@…): * status: new => closed * resolution: => Configuration changed -- Ticket URL: <http://trac.calendarserver.org/ticket/380#comment:5> Calendar and Contacts Server </> HTTP/WebDAV/CalDAV Server
participants (1)
-
Calendar and Contacts Server