Skip to content
This repository has been archived by the owner. It is now read-only.

Server throughs an exeption when configured to use SSL #301

Closed
macosforgebot opened this issue Jun 23, 2010 · 5 comments
Closed

Server throughs an exeption when configured to use SSL #301

macosforgebot opened this issue Jun 23, 2010 · 5 comments

Comments

@macosforgebot
Copy link

@macosforgebot macosforgebot commented Jun 23, 2010

kristian@… originally submitted this as ticket:380

  • 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.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Jun 19, 2011

ian@… originally submitted this as comment:1:⁠ticket:380

  • Cc ian@… added
@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Jun 19, 2011

ian@… originally submitted this as comment:2:⁠ticket:380


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.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Jun 20, 2011

ian@… originally submitted this as comment:3:⁠ticket:380

  • Cc ian@… removed
@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Jun 20, 2011

ian@… originally submitted this as comment:4:⁠ticket:380


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.

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Aug 1, 2011

@wsanchez originally submitted this as comment:5:⁠ticket:380

  • Radar deleted
  • Status changed from new to closed
  • Resolution changed from to Configuration changed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.