Commit graph

23 commits

Author SHA1 Message Date
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)