[Twisted-Python] strports.service, ssl and forcing client certs

Glenn Hochberg gah at research.att.com
Fri Sep 1 10:33:37 EDT 2006


On Aug 31, 2006, at 4:32 AM, Phil Mayers wrote:

>
>> Unlike the older ContextFactory classes, CertificateOptions has  
>> somewhat
>> more modern requirements not dictated by HTTP.  Specifically, the  
>> method
>> is TLSv1 and certificates are required.
>
> >>> import twisted
> >>> import twisted.internet.ssl
> >>> ssl.CertificateOptions()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'ssl' is not defined
> >>> twisted.__version__
> '2.4.0'
>
> When was that added?

Your import statement is not consistent with your usage.  You  
probably wanted:
	from twisted.internet import ssl



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20060901/baebfa4a/attachment.htm 


More information about the Twisted-Python mailing list