[Twisted-Python] Client/Server upload problem

2010-07-20 Thread Sean Dugan
I can't seem to figure out how a client uploads a file to the server using twisted.protocols.ftp. For the server side I am using the ftpserver example from the twisted website. For the client I have the following: from twisted.protocols.ftp import FTPClient, FTPFileListProtocol from twisted.intern

Re: [Twisted-Python] loading intermediate CA certs from a chain file

2010-07-20 Thread Sury Soni
I was able to solve this problem by writing following class. Thank you JP for pointing me to use_certificate_chain_file function. class ChainedOpenSSLContextFactory(DefaultOpenSSLContextFactory): def __init__(self, privateKeyFileName, certificateChainFileName, sslmethod=SSL.S

Re: [Twisted-Python] loading intermediate CA certs from a chain file

2010-07-20 Thread Konrads Smelkovs
what i recommend is to add all chain in one file using openssl kit (maybe just cat'ing works). However, most certs issued nowadays contain the chain already in. You can check with openssl x509 -in cert.pem -text and see the attached signers cerificate in base64, copy that to a new.pem and repeat. Y

Re: [Twisted-Python] loading intermediate CA certs from a chain file

2010-07-20 Thread exarkun
On 07:13 am, ss...@nextdigital.com wrote: >Hi There, > >Does Twisted support or is there any way of loading intermediate CA >certs from a chain file? Twisted uses pyOpenSSL for it's SSL support. So you can do pretty much anything pyOpenSSL allows. http://packages.python.org/pyOpenSSL /openssl

[Twisted-Python] loading intermediate CA certs from a chain file

2010-07-20 Thread Sury Soni
Hi There, Does Twisted support or is there any way of loading intermediate CA certs from a chain file? I have a SSL certificate issued by Thawte, but my system administrator says as quoted: Looks like you may need to install an Intermediary certificate. Relevant certs for Thawte can be found