<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Aug 31, 2006, at 4:32 AM, Phil Mayers wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px"><BR></P> <BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">Unlike the older ContextFactory classes, CertificateOptions has somewhat</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">more modern requirements not dictated by HTTP.<SPAN class="Apple-converted-space">  </SPAN>Specifically, the method</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">is TLSv1 and certificates are required.</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">&gt;&gt;&gt; import twisted</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">&gt;&gt;&gt; import twisted.internet.ssl</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">&gt;&gt;&gt; ssl.CertificateOptions()</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">Traceback (most recent call last):</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco"><SPAN class="Apple-converted-space">  </SPAN>File "&lt;stdin&gt;", line 1, in ?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">NameError: name 'ssl' is not defined</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">&gt;&gt;&gt; twisted.__version__</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">'2.4.0'</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">When was that added?</FONT></P> </BLOCKQUOTE><BR></DIV><DIV>Your import statement is not consistent with your usage.  You probably wanted:</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>from twisted.internet import ssl</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR></BODY></HTML>