Commit Graph
100 Commits
Author SHA1 Message Date
Seth Schoen cd0b99ae5d Fix ambiguity about describing a port as "open" 2015-03-29 23:11:05 -07:00
Seth Schoen e17b9907f8 psutil>=2.1.0; remove redundant parentheses 2015-02-20 14:37:23 -08:00
Seth Schoen daf7c81e5d Formatting and small fixes 2015-02-20 13:22:20 -08:00
Seth Schoen fc1617531e Use psutil instead of netstat subprocess 2015-02-19 17:49:27 -08:00
Seth Schoen 8ff99300e4 This is apparently not deterministic after all 2015-02-16 00:21:08 -08:00
Seth Schoen d4c1ceccac 100% coverage for recovery_token 2015-02-16 00:10:55 -08:00
Seth Schoen dd3e10eb42 100% coverage for crypto_util (test for make_csr) 2015-02-16 00:10:26 -08:00
Seth Schoen 4af0c197e1 Trivial test for ClientAuthenticator get_chall_pref 2015-02-15 23:25:41 -08:00
Seth Schoen fbd9e6f0db Specify location of netstat binary as a constant 2015-02-13 15:14:01 -08:00
Seth Schoen 67627c19d7 netstat output can differ on an IPv6 system 2015-02-13 14:59:59 -08:00
Seth Schoen 827c07a046 Merge branch 'master' into already_listening 2015-02-13 14:54:57 -08:00
Seth Schoen 2001d180af Fix typo in comment 2015-02-12 22:55:25 -08:00
Seth Schoen 42865fbc92 Add (Linux-specific) already_listening method 2015-02-12 19:27:33 -08:00
Seth Schoen e1cdc79bdc 100% coverage for obj.py 2015-02-12 15:21:35 -08:00
Seth Schoen 9cc7b0945b raise ValueError instead of raw Exception 2015-02-10 17:51:49 -08:00
Seth Schoen 82617c79b2 Remove two unused import statements 2015-02-09 15:26:46 -08:00
Seth Schoen b4418f72ff Improve docstrings 2015-02-09 14:42:16 -08:00
Seth Schoen 2591abd535 Change assertion to a ValueError in signal handler 2015-02-09 14:25:18 -08:00
Seth Schoen d8fd3e4e61 Reorganizing import statements 2015-02-09 14:23:09 -08:00
Seth Schoen 93bc90203a Use hanging indent style in several places 2015-02-09 12:22:47 -08:00
Seth Schoen 314dea3f5a Change Key to le_util.Key 2015-02-09 12:05:59 -08:00
Seth Schoen a543925e64 Some formatting fixes 2015-02-09 11:57:50 -08:00
Seth Schoen 3f250084b0 Sorting import statements 2015-02-09 10:06:24 -08:00
Seth Schoen 52ae977fb7 Sort imports lexicographically 2015-02-09 10:03:23 -08:00
Seth Schoen 275d3e3da5 Document and test start_listener() return value 2015-02-09 10:00:01 -08:00
Seth Schoen 470cad14ad Add missing return statements in start_listener() 2015-02-09 09:54:33 -08:00
Seth Schoen 6d0a14a0e5 Rename CONFIG.PORT to STANDALONE_CHALLENGE_PORT 2015-02-09 09:48:05 -08:00
Seth Schoen 56a60d0acf Move imports to top of unit test file 2015-02-09 09:44:49 -08:00
Seth Schoen 1c6865c329 Move abbreviated DVSNI code into a separate branch 2015-02-09 09:35:37 -08:00
Seth Schoen b324f9d912 Python 2.6 .format() requires parameter in format string 2015-02-08 21:15:49 -08:00
Seth Schoen 3453db0985 Eliminate use of Python 2.7-specific unittest features 2015-02-08 21:04:54 -08:00
Seth Schoen 58ba7095f3 Merge branch 'master' into standalone_authenticator 2015-02-08 17:26:54 -08:00
Seth Schoen f6e192bfaf Remove redundant import of client 2015-02-08 17:26:18 -08:00
Seth Schoen 30c11920d9 Tests to follow new convention for subproc_state 2015-02-08 11:09:02 -08:00
Seth Schoen 76fb3b54e2 Satisfy pylint on various points 2015-02-08 11:06:04 -08:00
Seth Schoen 304ffab112 Merge branch 'master' into standalone_authenticator 2015-02-08 09:29:45 -08:00
Seth Schoen 33ff8225d7 Merge branch 'master' into standalone_authenticator 2015-02-08 00:35:07 -08:00
Seth Schoen 50a6a28e73 Exclude tls_parse_client_hello from coverage
(As an alternative to commenting out this function, which is currently
totally unused.  The function does have tests; they just don't cover
the failure cases.)
2015-02-06 19:02:17 -08:00
Seth Schoen 4b8eae1084 Small changes to try to make pylint happier 2015-02-06 16:12:37 -08:00
Seth Schoen 52d1989850 Complete move of Key into le_util 2015-02-06 15:54:08 -08:00
Seth Schoen 31b1369752 Improve coverage for perform() error cases 2015-02-06 15:28:27 -08:00
Seth Schoen 5a9e394827 Test trying to perform challenges with others pending 2015-02-06 15:25:12 -08:00
Seth Schoen 65de5fa71e Further improvements to test coverage 2015-02-06 15:21:00 -08:00
Seth Schoen b61708c47f Improving test coverage 2015-02-06 15:08:48 -08:00
Seth Schoen ee8e4343bc Reformat continuation indentations 2015-02-06 14:46:45 -08:00
Seth Schoen 53f3f19f6d Check invalid cases for pack and unpack functions 2015-02-05 15:57:10 -08:00
Seth Schoen 8997248abb Use caller-specified TCP port no. in UI messages 2015-02-05 13:14:03 -08:00
Seth Schoen db3c98b45a Adding some docstrings 2015-02-05 13:03:20 -08:00
Seth Schoen 7c39e36c5a Merge branch 'master' into standalone_authenticator 2015-02-05 12:53:55 -08:00
Seth Schoen ef34c06c8f Convert two assertions to exceptions 2015-02-04 23:26:10 -08:00
Seth Schoen 41284ffc0a Let tests specify how long parent waits for child process 2015-02-04 22:36:24 -08:00
Seth Schoen ff3c0c6689 Comment out debug print statement 2015-02-04 22:33:40 -08:00
Seth Schoen 3d2f564478 Replace some call_counts with more specific assertions 2015-02-04 22:32:27 -08:00
Seth Schoen f9b0d8d0bf Add unit tests for listener child process 2015-02-04 22:17:11 -08:00
Seth Schoen e9b67ff6f9 Several more unit tests for StandaloneAuthenticator 2015-02-03 17:59:35 -08:00
Seth Schoen 63bf55a748 Split out parent and child listeners into methods 2015-02-03 15:51:37 -08:00
Seth Schoen 191b0d7be4 Add unit test for tls_generate_cert_msg 2015-02-03 14:23:41 -08:00
Seth Schoen 361478eca7 Initial set of unit tests for standalone authenticator 2015-02-02 17:03:48 -08:00
Seth Schoen 220c61f124 Small fixes to how errors are reported 2015-02-02 17:03:29 -08:00
Seth Schoen 867b719de5 Move Key namedtuple definition into le_util.py 2015-02-02 17:02:59 -08:00
Seth Schoen c43ecf924c Declare dependency on PyOpenSSL package 2015-02-02 17:02:22 -08:00
Seth Schoen 2409aa6475 Initial commit for standalone authenticator branch 2015-01-30 16:08:18 -08:00
Seth Schoen 4453d3fab8 Add a missing crypto_util 2014-11-24 16:02:30 -08:00
Seth Schoen b4492042d9 For crypto.util, read crypto_util 2014-11-24 15:59:32 -08:00
Seth Schoen c741d969de Correct PEM/DER return behavior 2014-11-24 15:52:48 -08:00
Seth Schoen 35c34ec6d4 PEP8 formatting fixes 2014-11-24 15:52:22 -08:00
Seth Schoen 2e8cdd071a Integrate CSR and private key validation steps into client 2014-11-24 14:16:29 -08:00
Seth Schoen 7e71bccf28 Add documentation for parameters of new functions 2014-11-24 14:10:35 -08:00
Seth Schoen ea6bec851b Add utility functions for checking CSR and privkey 2014-11-23 18:21:56 -08:00
Seth Schoen faaf101f08 More complete list of exceptions that can be raised
The acme.acme_object_validate() function can also raise ValueError
when given something that isn't JSON.
2014-11-22 17:36:10 -08:00
Seth Schoen 8b75058783 Spelling correction 2014-11-22 00:22:52 -08:00
Seth Schoen b8170a38ec docstrings and add JSON pretty-printing code 2014-11-18 16:39:38 -08:00
Seth Schoen 0bbec49880 consistent naming of PEM files in CONFIG.py 2014-11-17 15:00:36 -08:00
Seth Schoen 16af948b36 use JSON Schema schemata for ACME protocol validation 2014-11-17 14:50:01 -08:00
Seth Schoen 74af7a350e per ENISA report, switched to PKCS#1 PSS signature method 2013-10-31 12:39:00 -07:00
Seth Schoen c5f6ff92eb try to forget private keys more proactively after using them 2013-10-31 12:38:02 -07:00
Seth Schoen f35fb42096 in demo, only do POP challenge if the challenge type is POP challenge 2013-10-31 12:37:44 -07:00
Seth Schoen 1c5e4e2698 steps to generate the keys used by this demo script 2013-10-24 15:15:05 -07:00
Seth Schoen ae5bf2b177 working demonstration of proof-of-possession logic 2013-10-23 18:56:25 -07:00
Seth Schoen 85d7437178 per discussion, remove clock skew checks; also, two TODOs moved to filed issues 2012-11-19 11:59:21 -08:00
Seth Schoen 2acbe09ded the peername is actually unknown, not unspecified, in this case 2012-11-19 11:09:09 -08:00
Seth Schoen 05823ba2b0 peername may not be set in case of error 2012-11-19 11:05:05 -08:00
Seth Schoen 260983bde2 more sanity checking, though it's already done by the regular expression 2012-11-18 22:51:53 -08:00
Seth Schoen 96c6f1d737 log full session ID on a line by itself 2012-11-18 22:42:05 -08:00
Seth Schoen 796309a2ad allow one hour in the future 2012-11-18 22:39:58 -08:00
Seth Schoen 1bb8dcfacc further minor logging improvements 2012-11-18 22:37:20 -08:00
Seth Schoen 2d6af52d21 make logging output shorter 2012-11-18 22:32:58 -08:00
Seth Schoen 97ea1082ef further shorten short session ID 2012-11-18 22:28:16 -08:00
Seth Schoen f67b5656f6 a more concise time format 2012-11-18 22:25:25 -08:00
Seth Schoen bcf842e265 add time to the beginning of each log message 2012-11-18 22:24:12 -08:00
Seth Schoen e3dbe1a60f log IP address that payments come from 2012-11-18 22:21:06 -08:00
Seth Schoen d55b871e9f log successful and unsuccessful payment attempts 2012-11-18 22:19:18 -08:00
Seth Schoen 5d9e08964b Merge branch 'master' of ssh://github.com/research/chocolate 2012-11-18 22:12:48 -08:00
Seth Schoen 445ed85774 error_uri to allow displaying useful error messages from server 2012-11-18 22:12:28 -08:00
Seth Schoen 83d243923d adding name field to payment form 2012-11-18 22:12:00 -08:00
Seth Schoen 4c7126d0cd basic logging about messages from clients 2012-11-18 21:31:00 -08:00
Seth Schoen 9d1c0b8b19 proxy_peername is always 0.0.0.1 (unspecified) 2012-11-18 21:08:07 -08:00
Seth Schoen 2172c64070 show very slightly nicer error for bad payments 2012-11-18 21:07:20 -08:00
Seth Schoen 14b7d20bf7 further attempt to log remote peernames of dvsni test sockets! 2012-11-18 21:04:24 -08:00
Seth Schoen 1a830e2ab4 attempt to log remote peernames of dvsni test sockets! 2012-11-18 21:03:54 -08:00