Commit graph

48 commits

Author SHA1 Message Date
Brad Warren
f354607104 logic flip 2016-03-14 18:02:28 -07:00
Brad Warren
3fb990ac9b fixes #2661 2016-03-14 17:19:22 -07:00
Seth Schoen
31a27f675a Trivial change to re-run tests after spurious integration test failure 2016-02-16 14:41:02 -08:00
Seth Schoen
16761bc836 Fix lint line-too-long complaint 2016-02-16 13:00:08 -08:00
Seth Schoen
104fa3ad55 Separate error for -d with an IP address 2016-02-11 09:10:25 -08:00
Peter Eckersley
e0cfd9f691 Extra CSR sanity checking 2016-02-08 21:10:34 -08:00
Seth Schoen
61b714099d Centralize all domain sanity checking in one place 2016-02-01 19:27:47 -08:00
Peter Eckersley
d281162f17 Domain errors should include the domain in question 2016-01-29 13:41:24 -08:00
Peter Eckersley
bf7f9d2cc1 Debugging, but also helpful errors... 2016-01-28 16:57:31 -08:00
Brad Warren
3521c92be3 Fixed import ordering 2015-12-11 16:14:36 -08:00
Brad Warren
9248ba1e96 Fix deprecation bug 2015-12-11 16:06:12 -08:00
Joona Hoikkala
05723cbb4a Fixed wording 2015-12-08 21:28:23 +02:00
Joona Hoikkala
006edfdbd1 Wording change to error messages 2015-12-08 21:08:30 +02:00
Joona Hoikkala
82f71cba9b Linter fixes 2015-12-07 16:02:27 +02:00
Joona Hoikkala
2d5d4a65c4 Moved domain check to le_util 2015-12-07 15:07:27 +02:00
Brad Warren
0d6728f9cf Punctuation and deprecation 2015-11-30 18:57:48 -08:00
Brad Warren
4a2e40c365 Added add_deprecated_argument tests 2015-11-30 18:55:28 -08:00
Brad Warren
c72e122943 add add_deprecated_argument 2015-11-30 17:56:42 -08:00
Peter Eckersley
1bfd44ea34 Address review comments:
- make --user-agent a general CLI option
 - get_os_info return type
2015-11-12 17:31:32 -08:00
Peter Eckersley
0a72ebb379 get_os_info review fixes
- handle broken platform.linux_distribution()
 - document return type
2015-11-10 20:13:44 -08:00
Peter Eckersley
7dcf8a32f4 Only send the major version of OS X 2015-11-10 16:50:58 -08:00
Peter Eckersley
baaeab5fa1 Fix lints & glitches 2015-11-09 22:44:26 -08:00
Peter Eckersley
88cc01301a Creation & plumbing for user agent 2015-11-09 22:17:38 -08:00
Peter Eckersley
7b352d3d80 Handle FreeBSD and Windows 2015-11-09 18:21:39 -08:00
root
fb35a11c73 get_os_info : wrangle OS and major version number in a semi-portable way 2015-11-09 17:47:12 -08:00
Brad Warren
2015811a6c Incorporated Kuba's feedback 2015-09-26 12:18:32 -07:00
Brad Warren
fe810020c4 Made error logging entries red in the terminal 2015-09-25 13:26:45 -07:00
Peter Eckersley
e570dac3c6 fix type error 2015-09-16 13:21:21 -07:00
Peter Eckersley
1a2c983a9c Strict permission checking only upon request
Use --strict-permissions if you're running as a privileged user on a system
  where non-privileged users might have write permissions to parts of the lets
  encrypt config or logging heirarchy.  That should not normally be the case.

  Working toward a fix for #552
2015-09-16 13:13:24 -07:00
Jakub Warmuz
83185e5553
pep8 letsencrypt 2015-09-06 09:20:11 +00:00
James Kasten
7390a39a4d edit spacing 2015-07-29 23:49:02 -07:00
James Kasten
ae4e1d5058 Use a2enmod and update reverter 2015-07-29 23:40:07 -07:00
Jakub Warmuz
0d24f52f6e
Expose le_util.safe_open. 2015-07-09 11:14:25 +00:00
Jakub Warmuz
7dc64e0387
Rewrite acccounts and registration.
Save accounts to:

    /etc/letsencrypt/accounts/www.letsencrypt-dmeo.org/acme/new-reg/ \
    kuba.le.wtf@2015-07-04T14:04:10Z/ \
    {regr.json,meta.json,private_key.json}

Account now represents a combination of private key, Registration
Resource and client account metadata. `Account.id` based on the
account metadata (creation host and datetime). UI interface
(`cli._determine_account`) based on the `id`, and not on email as
previously.

Add `AccountStorage` interface and `AccountFileStorage`,
`AccountMemoryStorage` implementations (latter, in-memory, useful for
testing).

Create Account only after Registration Resource is received
(`register()` returns `Account`).

Allow `client.Client(..., acme=acme, ...)`: API client might reuse
acme.client.Client as returned by `register()`.

Move report_new_account to letsencrypt.account, client.Client.register
into client.register.

Use Registration.from_data acme API.

achallenges.AChallenge.key is now the `acme.jose.JWK`, not
`le_util.Key`. Plugins have to export PEM/DER as necessary
(c.f. `letsencrypt.plugins.common.Dvsni.get_key_path`)

Add --agree-tos, save --agree-eula to "args.eula". Prompt for EULA as
soon as client is launched, add prompt for TOS.

Remove unnecessary letsencrypt.network. Remove, now irrelevant,
`IConfig.account_keys_dir`.

Based on the draft from
https://github.com/letsencrypt/letsencrypt/pull/362#issuecomment-97946817.
2015-07-09 06:43:45 +00:00
Peter Eckersley
7fe5b8233b Retry, with sanity. 2015-06-23 17:38:48 -07:00
Peter Eckersley
4f3753b644 Merge remote-tracking branch 'letsencrypt/master' into help
Conflicts:
	letsencrypt/le_util.py
2015-06-23 16:23:14 -07:00
Jakub Warmuz
57f67c4109
Rewrap after errors rename, doc fixes. 2015-06-22 22:43:42 +00:00
Jakub Warmuz
cfa7e28106
errors.LetsEncrypt -> errors. (fixes: #487) 2015-06-22 22:41:24 +00:00
Peter Eckersley
fa09882892 Change permission error message
Commonly, this will be caused by a failure to sudo, so the previous text was
not necessarily going to be helpful.
2015-06-22 01:10:22 -07:00
Jakub Warmuz
efde7d4eff
Refactor le_util, 100% cover 2015-06-02 10:01:24 +00:00
Seth Schoen
b2b70279c2 Merge branch 'kuba-test-mode' of ssh://github.com/letsencrypt/lets-encrypt-preview into renewer 2015-05-26 14:34:31 -07:00
Jacob Hoffman-Andrews
1a5d6ba90d Use more verbose exception catch. 2015-05-22 13:16:55 -07:00
Jacob Hoffman-Andrews
8562496f82 Fixes from review comments. 2015-05-22 13:06:17 -07:00
Jacob Hoffman-Andrews
424acfe16e Fixes to running on command line.
Use cert_dir instead of cert_path
Restore server_url
When creating a unique file, only loop for EEXISTS, not other OS errors like
  permission denied.
Pass uid explicitly to make_or_verify_dir.
2015-05-21 18:58:40 -07:00
Seth Schoen
0f64082f1d Document newly-added functions and methods 2015-05-16 21:27:06 -07:00
Seth Schoen
c5a44f3e39 Removing magic constants 2015-05-14 12:12:16 -07:00
Seth Schoen
82a4c61eff Merge branch 'master' of ssh://github.com/letsencrypt/lets-encrypt-preview into renewer
Conflicts:
	letsencrypt/client.py
2015-05-13 12:10:36 -07:00
Jakub Warmuz
41e86df252
Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00
Renamed from letsencrypt/client/le_util.py (Browse further)