Commit graph

16 commits

Author SHA1 Message Date
Brad Warren
1ff4f4c9dd add tests for unicode {en,de}coding error 2016-03-14 17:43:33 -07:00
Roy Wellington Ⅳ
8046cdc26a Make uses of StringIO.StringIO Python 3 compatible. 2016-02-26 22:02:16 -08:00
Brad Warren
4a2e40c365 Added add_deprecated_argument tests 2015-11-30 18:55:28 -08: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
Brad Warren
cfabfa1a67 Merge remote-tracking branch 'kuba/update-challenges' into update-challenges 2015-08-04 16:57:53 -07:00
James Kasten
ae4e1d5058 Use a2enmod and update reverter 2015-07-29 23:40:07 -07:00
Jakub Warmuz
e0651ad050
Remove Recovery Token. 2015-07-25 12:00:04 +00: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
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
9e5bd7c90d
Do not use generic exceptions in le_util_test. 2015-06-02 10:01:24 +00:00
Jakub Warmuz
b75df9f4de
range -> xrange 2015-05-28 07:45:41 +00:00
Seth Schoen
2201e7944d Unit tests for le_util.unique_lineage_name() 2015-05-14 16:47:41 -07:00
Jakub Warmuz
b4c747a283
Merge branch 'bugs/402' into pkgs_sep_prep
Conflicts:
	letsencrypt/tests/client_test.py
	tox.ini
2015-05-10 17:56:41 +00:00
Jakub Warmuz
41e86df252
Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00
Renamed from letsencrypt/client/tests/le_util_test.py (Browse further)