20 Commits
Author SHA1 Message Date
Peter Eckersley 9201f2691f Wrangle the Reporter to also be --quiet 2016-04-01 20:14:06 -07:00
Jakub Warmuz 28a837ada7 Use PEM for Account.id generation (fixes #1012).
This is a breaking change, already existing /etc/letsencrypt/accounts
will cause the client raise errors.AccountStorageError ("Account ids
mismatch ..."). Simple fix: start over by `rm -rf
/etc/letsencrypt`. In a long run it's a better solution that bumping
to `cryptography>=0.9`...
2015-10-17 12:07:49 +00:00
Peter Eckersley 2a3a111d62 Disable pylint invalid-name
It's clearly making our code harder to read and write
2015-09-30 12:10:16 -07:00
Brad Warren 4da0e17255 Added message and changed reporter interface 2015-09-28 15:45:31 -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
Harlan Lieberman-Berg dc4cc23377 Fix minor spelling errors in the code. 2015-09-05 22:35:34 -04:00
Jakub Warmuz e0651ad050 Remove Recovery Token. 2015-07-25 12:00:04 +00:00
Jakub Warmuz 30a02d4487 Accounts: raise AccountStorageError on id mismatch (instead of assertion).
This allows find_all() to skip broken account, instead of failing with
AssertionError.
2015-07-10 05:34:33 +00:00
Jakub Warmuz f4d5ce1986 Include Account.id in the Account.slug. 2015-07-10 05:27:01 +00:00
Jakub Warmuz 581875bde3 Account.id: use key md5 hexdigest. 2015-07-10 05:14:50 +00:00
Jakub Warmuz 5e450e879c Save account private_key.json as 0o400. 2015-07-09 11:33:02 +00:00
Jakub Warmuz 1bc9e7cb64 Registration: drop singular email/phone 2015-07-09 06:53:06 +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
Jakub Warmuz 4ce4e2f930 logger = logging.getLogger(__name__) 2015-06-25 19:55:22 +00: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
Jakub Warmuz 8e39a3a0ef Collate multi-line logs, use logging.exception, other fixes. 2015-06-22 22:05:27 +00:00
Jakub Warmuz a278d53f52 Rename messages2 to messages. 2015-06-22 04:52:08 +00:00
Jacob Hoffman-Andrews 8cf9a152de Don't suggest optional email.
Email is still optional, by the same mechanism, but removing the suggestion to
leave it out we will greatly increase the percentage of users that supply one,
which in turn will reduce customer support requests.
2015-06-04 14:22:05 -07:00
Jakub Warmuz 41e86df252 Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00