Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #380 (closed Defect: Configuration changed)

Opened 3 years ago

Last modified 22 months ago

Server throughs an exeption when configured to use SSL

Reported by: kristian@… Owned by: wsanchez@…
Priority: 5: Not set Milestone:
Component: Calendar Server Severity: Crash/data loss
Keywords: carddav ssl Cc:
Port:

Description

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.

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by ian@…

  • Cc ian@… added

Cc Me!

comment:2 in reply to: ↑ 1 Changed 2 years ago 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.

comment:3 Changed 2 years ago by ian@…

  • Cc ian@… removed

Cc Me!

comment:4 Changed 2 years ago 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.

comment:5 Changed 22 months ago by wsanchez@…

  • Status changed from new to closed
  • Resolution set to Configuration changed
Note: See TracTickets for help on using tickets.