Re: [Twisted-Python] Log file ownership

2012-06-13 Thread Glyph
On Jun 11, 2012, at 12:21 AM, Flavio Grossi wrote: > twistedmatrix.com> writes: > > >> >> Log rotation - ie, renaming a file - isn't affected by the permissions >> of the log file. The permissions of the *directory containing the log >> file* control whether it can be renamed (and a new on

Re: [Twisted-Python] Quan Nguyen: Twisted Python questions

2012-06-13 Thread Glyph
On Jun 12, 2012, at 1:53 PM, Quan Nguyen wrote: > Hello, > > I am new to Twisted. > I am extending the twisted Echo server example by sending the data that the > server receives from telnet into a child process that processes the data. The > function outReceived in censoringProtocol is called

Re: [Twisted-Python] Catching error in protocol.ReconnectingClientFactory

2012-06-13 Thread Glyph
On Jun 11, 2012, at 8:01 AM, Martin wrote: > Hi there, > > I've been looking around for a solution for several hours now, and maybe > I'm just missing something.. > > I've a factory that implements protocol.ReconnectingClientFactory which > works just fine, however, whenever the program ends

Re: [Twisted-Python] Detect SSL transport and get remote peer certificate in tcp.Server

2012-06-13 Thread exarkun
On 12:44 pm, a...@roiban.ro wrote: >On 13 June 2012 14:15, wrote: >>On 10:39 am, a...@roiban.ro wrote: >>>Hi, >>> >>>I work at an experimental FTPS implementation for >>>twisted.protocol.ftp >>> >>>I use the following code for checking that the transport has TLS >>>started and to get the client

Re: [Twisted-Python] Detect SSL transport and get remote peer certificate in tcp.Server

2012-06-13 Thread Adi Roiban
On 13 June 2012 14:15, wrote: > On 10:39 am, a...@roiban.ro wrote: >>Hi, >> >>I work at an experimental FTPS implementation for twisted.protocol.ftp >> >>I use the following code for checking that the transport has TLS >>started and to get the client certificate for certificate based >>authentica

Re: [Twisted-Python] Detect SSL transport and get remote peer certificate in tcp.Server

2012-06-13 Thread Phil Mayers
On 13/06/12 12:15, exar...@twistedmatrix.com wrote: > Heh. :) Instead, use `transport.getPeerCertificate()`. > `getPeerCertificate` is a method specified by `ISSLTransport`. I've run into some oddities which this method call before; IIRC you have to setup the context in a very particular way to

Re: [Twisted-Python] Detect SSL transport and get remote peer certificate in tcp.Server

2012-06-13 Thread exarkun
On 10:39 am, a...@roiban.ro wrote: >Hi, > >I work at an experimental FTPS implementation for twisted.protocol.ftp > >I use the following code for checking that the transport has TLS >started and to get the client certificate for certificate based >authentication: > >@property >def is_ftps_c

[Twisted-Python] Detect SSL transport and get remote peer certificate in tcp.Server

2012-06-13 Thread Adi Roiban
Hi, I work at an experimental FTPS implementation for twisted.protocol.ftp I use the following code for checking that the transport has TLS started and to get the client certificate for certificate based authentication: @property def is_ftps_command_active(self): '''Return `True`