summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
Commit message (Collapse)AuthorAgeFilesLines
* Disabled test_xmlrpc:test_404. It's causing lots of false alarms.Christian Heimes2008-01-191-2/+2
| | | | I also disabled a test in test_ssl which requires network access to svn.python.org. This fixes a bug Skip has reported a while ago.
* use binary mode when reading files for testAsyncore to make Windows happyBill Janssen2007-09-161-1/+1
|
* Add support for asyncore server-side SSL support. This requiresBill Janssen2007-09-161-104/+270
| | | | | | | | | | | | | | | adding the 'makefile' method to ssl.SSLSocket, and importing the requisite fakefile class from socket.py, and making the appropriate changes to it to make it use the SSL connection. Added sample HTTPS server to test_ssl.py, and test that uses it. Change SSL tests to use https://svn.python.org/, instead of www.sf.net and pop.gmail.com. Added utility function to ssl module, get_server_certificate, to wrap up the several things to be done to pull a certificate from a remote server.
* Make sure test_ssl doesn't reference the ssl module in aBill Janssen2007-09-111-1/+4
| | | | context where it can't be imported.
* A better way of finding an open port to test with.Bill Janssen2007-09-101-3/+26
|
* More work on SSL support.Bill Janssen2007-09-101-211/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Much expanded test suite: All protocols tested against all other protocols. All protocols tested with all certificate options. Tests for bad key and bad cert. Test of STARTTLS functionality. Test of RAND_* functions. * Fixes for threading/malloc bug. * Issue 1065 fixed: sslsocket class renamed to SSLSocket. sslerror class renamed to SSLError. Function "wrap_socket" now used to wrap an existing socket. * Issue 1583946 finally fixed: Support for subjectAltName added. Subject name now returned as proper DN list of RDNs. * SSLError exported from socket as "sslerror". * RAND_* functions properly exported from ssl.py. * Documentation improved: Example of how to create a self-signed certificate. Better indexing.
* SSL certificate distinguished names should be represented by tuplesBill Janssen2007-09-051-8/+5
|
* > Regardless, building a fixed test certificate and checking it in sounds likeGuido van Rossum2007-08-271-8/+10
| | | | | | | | | > the better option. Then the openssl command in the test code can be turned > into a comment describing how the test data was pregenerated. Here's a patch that does that. Bill
* If we can't create a certificate, print a warning, but don't fail the test.Neal Norwitz2007-08-271-13/+16
| | | | Modified patch from what Bill Janssen sent on python-3000.
* Make a utility function for handling (printing) an errorNeal Norwitz2007-08-271-16/+14
|
* Stop using string.join (from the module) to ease upgrade to py3kNeal Norwitz2007-08-271-10/+10
|
* Another patch from Bill Janssen that:Neal Norwitz2007-08-261-6/+16
| | | | | | 1) Fixes the bug that two class names are initial-lower-case. 2) Replaces the poll waiting for the server to become ready with a threading.Event signal.
* Get the test passing by commenting out some writes (should they be removed?)Neal Norwitz2007-08-261-2/+2
|
* Bill Janssen wrote:Guido van Rossum2007-08-261-39/+82
| | | | | Here's a patch which makes test_ssl a better player in the buildbots environment. I deep-ended on "try-except-else" clauses.
* Fail gracefully if the cert files cannot be createdNeal Norwitz2007-08-261-2/+7
|
* Try to get this test to pass for systems that do not have SO_REUSEPORTNeal Norwitz2007-08-251-1/+4
|
* Fix test so it is skipped properly if there is no SSL support.Neal Norwitz2007-08-251-2/+6
|
* Server-side SSL and certificate validation, by Bill Janssen.Guido van Rossum2007-08-251-0/+304
While cleaning up Bill's C style, I may have cleaned up some code he didn't touch as well (in _ssl.c).