257 Commits
Author SHA1 Message Date
Peter Eckersley 64600ff61c Place a signpost about default detection for plugin args 2016-02-09 17:52:30 -08:00
bmw bfb5f7ee9d Merge pull request #2352 from letsencrypt/2348
More helpful error messages if trying to renew with standalone and bound ports
2016-02-09 15:53:53 -08:00
Peter Eckersley 54600409f8 Merge branch 'master' of ssh://github.com/letsencrypt/letsencrypt into webroot-map-and-flags 2016-02-08 20:46:51 -08:00
Peter Eckersley 362a9a239d Merge pull request #2404 from letsencrypt/renew-integration-v2
Renew integration tests v2
2016-02-08 19:45:24 -08:00
Peter Eckersley a774922f8f Revert "Revert "Allow webroot-map and --csr to exist together.""
This reverts commit d65a3c65c2.
2016-02-08 18:14:55 -08:00
Brad Warren 4038be9816 Test manual prepare() 2016-02-08 18:06:56 -08:00
Brad Warren 77616a975b Allow non-interactive with test-mode 2016-02-08 17:59:30 -08:00
Brad Warren 24a3b66b1c Use server_close() in standalone 2016-02-08 17:52:12 -08:00
Peter Eckersley d65a3c65c2 Revert "Allow webroot-map and --csr to exist together." 2016-02-08 17:25:47 -08:00
Peter Eckersley 6df94bf68d Better webroot configuration error
Fixes: #2377
2016-02-06 13:48:09 -08:00
Peter Eckersley 7bfe246c63 Merge remote-tracking branch 'origin/renew_verb' into 2348 2016-02-05 09:57:28 -08:00
Peter Eckersley 4d8dbc9d81 Lint this entire monstrosity
- Doing some of @schoen's refactoring homework for him :)
2016-02-03 18:55:06 -08:00
Noah Swartz 3697ca7e3e throw an error if manual is run non-interactively 2016-02-02 17:56:12 -08:00
Peter Eckersley c2fa9b95c1 Pick a display height that works pretty well 2016-02-02 17:05:54 -08:00
Peter Eckersley c084814c6f Attempt to display better... 2016-02-02 17:01:00 -08:00
Peter Eckersley ccd58dea5b More helpful error when renewing with standalone 2016-02-02 16:47:42 -08:00
Peter Eckersley bbb25c7d1b Merge remote-tracking branch 'origin/master' into non-interactive
(Merge conflict due to PEP8iness)
2016-01-15 16:04:38 -08:00
Filip Ochnik b89d383ff4 Add tests for missing paths in webroot plugin 2016-01-15 11:38:21 +07:00
Filip Ochnik 2a6d3bedb6 Fix missing --webroot-path handling in webroot plugin 2016-01-15 11:37:20 +07:00
Brad Warren 8680a29c9d Merge branch 'master' into pyopenssl 2016-01-02 13:11:11 -05:00
Peter Eckersley 6daaa7a763 Add defaults / cli_flags for yesno() input 2015-12-29 00:03:57 -08:00
Peter Eckersley f5cf58f42e with .. open .. as # definitely nicer 2015-12-22 15:42:53 -08:00
Peter Eckersley e41339cda8 Keep lint happy
(But what about py3?)
2015-12-21 20:01:28 -08:00
Peter Eckersley aa6bf73d4a Only test permission failures if we're not root
or, more generally, if we're on a system where permissions are being enforced

Closes: #1979
2015-12-21 19:58:07 -08:00
Brad Warren 20b3188c65 No kwargs plz 2015-12-16 19:46:56 -08:00
Peter Eckersley 0751244597 Merge pull request #1875 from letsencrypt/webroot-permissions
Webroot permissions
2015-12-12 00:32:16 -08:00
Brad Warren 1a7dd76288 Added test coverage 2015-12-11 19:31:50 -08:00
Brad Warren d45865a601 Cleanup 2015-12-11 19:14:23 -08:00
Brad Warren 2d52559466 Cleanup comment 2015-12-11 18:12:46 -08:00
Joe Ranweiler f4d499dbad Make help message indicate derived challenge preference 2015-12-11 18:07:25 -08:00
Joe Ranweiler 2f904a41e0 Derive preference order from supported_challenges order 2015-12-11 18:06:11 -08:00
Brad Warren 74927613e9 Fixed lint issues 2015-12-11 18:03:52 -08:00
Joe Ranweiler c66c6bae1d Make supported_challenges return a list, not set 2015-12-11 18:00:33 -08:00
Luca Beltrame 2b942d97b2 Address review comments
- move the umask call before the try/except block
- move comment in _prepare_single to the umask call

Simplify the code comments, too.

Tests still pass.
2015-12-07 11:17:29 +01:00
Luca Beltrame edf3a4ed73 Make webroot usable also when running as non-root (GH #1795)
Thanks to @aburch's suggestions, the logic has been changed:

- Set umask before creating folders and files
- Leverage os.makedirs' mode option in conjunction with umask

The program still tries to change owner / group, but in case of errors
it continues gracefully.

Tests have been updated, and they pass.
2015-12-07 10:49:24 +01:00
Joe Ranweiler dbf181ebac Respect config when stating challenge preferences 2015-12-03 00:28:12 -08:00
Joe Ranweiler 8cf47e3aba Add tests to check that configuration is used
The existing tests use the case in which the (configured) supported
challenges are equal to the defaults, and in the same (now-fixed) order.
These additional tests check that, if we have configured a subset of the
supported challenges, then we actually _use_ that configuration.
2015-12-03 00:13:09 -08:00
Joe Ranweiler d5511971aa Update plugin help string 2015-12-02 22:50:32 -08:00
Joe Ranweiler fa55871598 Remove dead import 2015-12-02 22:14:32 -08:00
Joe Ranweiler a0142dbe44 Don't randomize challenge preference 2015-12-02 22:13:05 -08:00
Joe Ranweiler 144a678473 Encode challenge preference order in constant 2015-12-02 22:12:18 -08:00
Joe Ranweiler 5054a3dd79 Fix typo in test name 2015-12-02 21:57:31 -08:00
Joe Ranweiler 55d4365a46 Expect a fixed standalone challenge preference 2015-12-02 21:30:05 -08:00
Peter Eckersley 02d93e995a lint 2015-12-01 19:24:14 -08:00
Peter Eckersley a191daf3ee Merge pull request #1597 from lbeltrame/fix-webroot-permissions
Fix webroot permissions [mergeable, but enhancements also requested]
2015-12-01 19:07:06 -08:00
Peter Eckersley f4dd660403 Oops!
- Finish a partial commit, providing what are perhaps excessively detailed and
  mystical errors in improbable cases.
2015-12-01 16:50:39 -08:00
Peter Eckersley 06e273413b Fix nits and address review comments 2015-12-01 16:33:35 -08:00
Peter Eckersley 6c9ddf34e6 Merge remote-tracking branch 'origin/master' into webroot 2015-11-30 20:57:27 -08:00
Peter Eckersley 328f8cdc5b Document --webroot-path 2015-11-30 18:24:40 -08:00
bmw 8cf63c493f Merge pull request #1568 from erikrose/kill-dvsni
Remove remaining "DVSNI" wording, changing it to reference TLS-SNI-01, which it changed into.
2015-11-25 15:30:02 -05:00