<div dir="ltr"><div><div>Hi,<br><br></div>I have set up calendarserver on my Raspberry Pi (Raspbian~Debian) for personal usage. I wanted to handle all communications on a secure connection therefore, I do want to use SSL/TLS only. After I set up everything, I could browse the root directory on non-tls channel. Then I wanted to create a self-signed certificate to secure the connection. I had a pair of .pem and .key files, which I referenced in the configuration. I made sure, they are accessible. Then, I tried to &quot;browse&quot; the root directory again, but webpage never loaded (it was is being loaded for a very long time). Then I checked the error.log file and here what I have found:<br><br>2016-01-24 23:01:50+0100 [-] [caldav-1]  [-] Unhandled Error<br>2016-01-24 23:01:50+0100 [-] [caldav-1]         Traceback (most recent call last):<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/python/log.py&quot;, line 73, in callWithContext<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             return context.call({ILogContext: newCtx}, func, *args, **kw)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/python/context.py&quot;, line 118, in callWithContext<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             return self.currentContext().callWithContext(ctx, func, *args, **kw)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/python/context.py&quot;, line 81, in callWithContext<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             return func(*args,**kw)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/internet/selectreactor.py&quot;, line 149, in _doReadOrWrite<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             why = getattr(selectable, method)()<br>2016-01-24 23:01:50+0100 [-] [caldav-1]         --- &lt;exception caught here&gt; ---<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twext/internet/sendfdport.py&quot;, line 286, in doRead<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             transport = self.transportFactory(skt, description, protocol)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twext/web2/metafd.py&quot;, line 104, in createTransport<br><b>2016-01-24 23:01:50+0100 [-] [caldav-1]             transport.startTLS(self.contextFactory)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/internet/_newtls.py&quot;, line 179, in startTLS<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             startTLS(self, ctx, normal, FileDescriptor)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/internet/_newtls.py&quot;, line 139, in startTLS</b><br>2016-01-24 23:01:50+0100 [-] [caldav-1]             tlsFactory = TLSMemoryBIOFactory(contextFactory, client, None)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py&quot;, line 769, in __init__<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             contextFactory = _ContextFactoryToConnectionFactory(contextFactory)<br>2016-01-24 23:01:50+0100 [-] [caldav-1]           File &quot;/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py&quot;, line 648, in __init__<br>2016-01-24 23:01:50+0100 [-] [caldav-1]             oldStyleContextFactory.getContext()<br>2016-01-24 23:01:50+0100 [-] [caldav-1]         <b>exceptions.AttributeError: &#39;NoneType&#39; object has no attribute &#39;getContext&#39;</b><br>2016-01-24 23:01:50+0100 [-] [caldav-1]         <br><br></div><div>I also tried letsencrypt&#39;s CA certificate, I had the same problem.<br></div><div>What might be the problem? Is it a bug or the server doesn&#39;t like the certificate for some reason?<br><br></div><div>Thanks a lot!<br></div><div><br></div></div>