From eclecticnancy at gmail.com Wed Jun 6 17:25:20 2007 From: eclecticnancy at gmail.com (Nancy Head) Date: Wed, 6 Jun 2007 11:25:20 -0400 Subject: [pyOpenSSL] FTP/SSL (FTPS) Message-ID: I'm a beginning programmer trying to figure out how to use Python to do FTP/SSL (FTPS) - just as a client. Will pyOpenSSL help me to do this? Thanks for any help... -Nancy -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcbw at redhat.com Wed Jun 6 19:47:24 2007 From: dcbw at redhat.com (Dan Williams) Date: Wed, 06 Jun 2007 13:47:24 -0400 Subject: [pyOpenSSL] FTP/SSL (FTPS) In-Reply-To: References: Message-ID: <1181152044.30586.6.camel@xo-28-0B-88.localdomain> On Wed, 2007-06-06 at 11:25 -0400, Nancy Head wrote: > > I'm a beginning programmer trying to figure out how to use Python to > do FTP/SSL (FTPS) - just as a client. > Will pyOpenSSL help me to do this? Probably, yes. There aren't any good documents on it, you probably just have to look for code samples and follow them. Is FTPS just FTP over an SSL connection? If so, the SSL connection bits are pretty trivial to set up, and you just point the FTP parts at the socket. Dan > Thanks for any help... > > -Nancy > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ pyopenssl-list mailing list pyopenssl-list at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyopenssl-list From eclecticnancy at gmail.com Tue Jun 12 16:51:21 2007 From: eclecticnancy at gmail.com (Nancy Head) Date: Tue, 12 Jun 2007 10:51:21 -0400 Subject: [pyOpenSSL] setup/install Message-ID: I've downloaded pyOpenSSL and am looking at the doc, but need some basic help getting set up. I'm on Win and have unzipped files to C:\Program Files\Python24\pyOpenSSL- 0.6 ::::::::::::The doc says:::::::::::::::: 2.2 Building the library: setup.py build_ext -I ...\openssl\inc32 -L ...\openssl\out32dllsetup.py build Where ...\openssl is of course the location of your OpenSSL installation. ::::::::::::::::::::::::::::::::::::::::::::::: Here's what I've done to try to do that... Any suggestions/corrections/direction very welcome. I opened a cmd prompt, navigated to the pyOpenSSL-0.6 dir and typed... setup.py build_ext -I C:\Program Files\Python24\openssl\inc32 -L C:\Program Files\Python24\openssl\out32dll This launched PythonWin and opened setup.py. Oh yeah, I have it defaulting there (but am not sure how to change it to launch Python by default.) So, I tried using Run (to execute setup.py) and typing in the args there... build_ext -I openssl\inc32 -L openssl\out32dll This produced output "running build_ext" and an error message: ... returned an exit code error: The .NET Framework SDK needs to be installed. So... next step is to download/install the following? .NET Framework Version 2.0 Redistributable Package & .NET Framework Version 2.0 Software Development Kit Thanks... Nancy -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave at cridland.net Wed Jun 13 10:57:40 2007 From: dave at cridland.net (Dave Cridland) Date: Wed, 13 Jun 2007 09:57:40 +0100 Subject: [pyOpenSSL] setup/install In-Reply-To: References: Message-ID: <6021.1181725060.911884@invsysm1> On Tue Jun 12 15:51:21 2007, Nancy Head wrote: > setup.py build_ext -I ...\openssl\inc32 -L > ...\openssl\out32dllsetup.py build > > C:\Program Files\Python24\python.exe setup.py [...] That way it'll bypass whatever association you have set up, and "just run". You *may* find this works better. > So... next step is to download/install the following? > > .NET Framework Version 2.0 Redistributable Package > > & .NET Framework Version 2.0 Software Development Kit I don't think you need .NET to install pyOpenSSL with a normal Python. (You'd possibly need it for a .NET hosted Python, but that's a different thing). I'm away from home, and therefore a convenient Windows VM, but I'll take a look when I get back. Dave. -- Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at jabber.org - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/ - http://dave.cridland.net/ Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade From darrinth at gmail.com Wed Jun 13 19:01:43 2007 From: darrinth at gmail.com (Darrin Thompson) Date: Wed, 13 Jun 2007 13:01:43 -0400 Subject: [pyOpenSSL] Build problem, pyopenssl on win32 vs2003. Message-ID: I've been trying to build pyOpenSSL on Windows with Visual Studio 2003 (command line tools). I've hit the message below: building 'OpenSSL.SSL' extension creating build\temp.win32-2.5\Release\src\ssl C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Ic:\OpenSSL\include -Ic:\Python25\include -Ic:\Python25\PC /Tcsrc/ssl/connection.c /Fobuild\temp.win32-2.5\Release\src/ssl/connection.obj connection.c c:\cygwin\home\pandora\build-toolchain\build\pyOpenSSL-0.6\src\crypto\x509name.h(27) : error C2059: syntax error : '(' c:\cygwin\home\pandora\build-toolchain\build\pyOpenSSL-0.6\src\crypto\x509name.h(30) : error C2059: syntax error : '}' c:\OpenSSL\include\openssl\x509v3.h(185) : error C2059: syntax error : '(' c:\OpenSSL\include\openssl\x509v3.h(193) : error C2059: syntax error : 'type' c:\OpenSSL\include\openssl\x509v3.h(197) : error C2059: syntax error : '}' I dug in and looked at preprocessor output. For some reason, after winsock.h is included, X509_NAME is replaced with ((LPCSTR) 7). Oh, And I'm building against the windows binaries provided by "shining light productions". Any ideas on how to fix this? -- Darrin From dave at cridland.net Wed Jun 27 15:34:28 2007 From: dave at cridland.net (Dave Cridland) Date: Wed, 27 Jun 2007 14:34:28 +0100 Subject: [pyOpenSSL] X509 Extension Bug In-Reply-To: <463EB6E4.9060501@astllc.org> References: <463EB6E4.9060501@astllc.org> Message-ID: <31632.1182951268.221679@peirce.dave.cridland.net> On Mon May 7 06:19:32 2007, Eli Collins wrote: > I just wanted to draw your attention to a bug in the X509 Extension > class > which debian has applied a patch for, but seems to be missing > from Dave's svn fork as of r709. Sorry, going through old mail and I noticed I'd put this one aside to deal with and forgotten all about it. This is applied in my r752. Anyone volunteering to test? If I can get enough testing of r752, then I could call it 0.7, and start asking for volunteers for packaging et al. Dave. -- Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at jabber.org - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/ - http://dave.cridland.net/ Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade