1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00
Commit Graph

37 Commits

Author SHA1 Message Date
Brad Warren
303f7ffe32 Added validator code 2015-07-22 13:47:09 -07: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
2ec451d00b IConfig.simple_http_port (fixes #542). 2015-06-29 07:58:36 +00:00
Jakub Warmuz
b1b3befd04 Backport #440 CLI changes, clean up after #485
Additonally:
- remove "-s", it will not be used often
- remove --accountkey (former --authkey), as it is not used
- CLI_DEFAULTS: cert_path -> auth_cert_path, chain_path -> auth_chain_path
- remove remaining "LetsEncrypt" error prefixes (fixes #487).
- HeplfulParser:
  - call add_plugin_args from outside (this makes sure plugins are
    displayed last in --help all)
2015-06-26 13:26:09 +00:00
Jakub Warmuz
7d775ae9f3 Add null installer, integration tests for install/run
Fixes #438.
2015-06-26 13:26:09 +00:00
Jakub Warmuz
e51f300ee6 Merge remote-tracking branch 'github/letsencrypt/master' into csr
Conflicts:
	letsencrypt/cli.py
	letsencrypt/client.py
	letsencrypt/tests/client_test.py
2015-06-25 13:36:41 +00:00
James Kasten
04440179f4 Merge pull request #534 from kuba/440-no-cli
Dynamic dirs based on --config-dir and --work-dir (#440 without touching CLI)
2015-06-24 19:06:33 -04:00
Jakub Warmuz
f1e747ac1a Revert CLI changes, blocked by #485. 2015-06-23 07:48:45 +00:00
Jakub Warmuz
278bd8deb2 Rename IConfig.csr_dir back to IConfig.cert_dir.
This will be used in #504.
2015-06-23 07:48:45 +00:00
Jakub Warmuz
8e582dfff8 Merge remote-tracking branch 'github/letsencrypt/master' into cli-config-fixes
Conflicts:
	letsencrypt/constants.py
2015-06-23 07:47:48 +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
cf76593fa7 Remove constants.NETSTAT. Update docs for IConfig.server. 2015-06-22 18:03:04 +00:00
Jakub Warmuz
8f4280c2df Merge remote-tracking branch 'github/letsencrypt/master' into cli-config-fixes
Conflicts:
	letsencrypt_apache/tests/util.py
	letsencrypt_nginx/tests/util.py
2015-06-20 20:04:58 +00:00
Jakub Warmuz
8883bd76fd Add --no-simple-http-tls. 2015-06-12 08:25:59 +00:00
Jakub Warmuz
9a7ade7cba Rename cert_dir to csr_dir. 2015-06-02 17:42:23 +00:00
Jakub Warmuz
ed5e8df8d7 Merge remote-tracking branch 'github/letsencrypt/master' into cli-config-fixes
Conflicts:
	letsencrypt/constants.py
	letsencrypt/interfaces.py
2015-06-02 00:19:05 +00:00
Jakub Warmuz
3fefd28080 Only configure --config-dir/--work-dir (rest dynamic). 2015-06-01 23:49:07 +00:00
Jakub Warmuz
2929039cf4 Split --test-mode into --no-verify-ssl and --dvsni-port (fixes #462). 2015-06-01 20:56:58 +00:00
Brad Warren
0558aa1c01 Merge remote-tracking branch 'upstream/master' into notify 2015-05-29 11:34:11 -07:00
Brad Warren
8bcc8f8024 Finished basic reporter 2015-05-29 11:33:11 -07:00
Jakub Warmuz
9ea5e20b44 Merge remote-tracking branch 'github/letsencrypt/master' into cli-config-fixes
Conflicts:
	letsencrypt/cli.py
	letsencrypt/constants.py
	letsencrypt/interfaces.py
2015-05-29 07:42:24 +00:00
Seth Schoen
e15b7b4deb Merge branch 'master' into renewer_config_location
Conflicts:
	letsencrypt/cli.py
	letsencrypt/client.py
	letsencrypt/interfaces.py
2015-05-28 14:55:47 -07:00
Jakub Warmuz
eef1ce6cf5 Merge remote-tracking branch 'github/letsencrypt/master' into cli-config-fixes-2 2015-05-28 20:47:35 +00:00
Seth Schoen
3dbf47eb3f Merge branch 'renewer-cleanup' of https://github.com/kuba/lets-encrypt-preview 2015-05-28 12:36:32 -07:00
Jakub Warmuz
5547d13f12 Merge branch 'renewer-cleanup' into cli-config-fixes-2
Conflicts:
	letsencrypt/cli.py
	letsencrypt/client.py
	letsencrypt/interfaces.py
2015-05-28 19:07:58 +00:00
Jakub Warmuz
d01b17f1e2 IInstaller.deploy_cert docs/naming fixes 2015-05-28 18:31:06 +00:00
Jakub Warmuz
2178315f8a Various docstring fixes.
- Use r""" \* """
- transform plugins note to ..warning
- ' -> ` for cross-reference
- fix some "more than one target found for cross-reference" warnings
2015-05-28 15:17:55 +00:00
Jakub Warmuz
da8f3e19a4 Remove confusingly unused --enroll-autorenew. 2015-05-28 07:58:40 +00:00
Brad Warren
31fbcd46e0 Merge remote-tracking branch 'upstream/master' into notify 2015-05-27 22:39:46 -04:00
Brad Warren
0e1f6b24f3 Added basic notifier 2015-05-27 19:29:06 -04:00
Seth Schoen
b617305927 Inelegant approach to support --renewer-config-file command-line argument 2015-05-27 12:38:47 -07:00
Seth Schoen
5c6d833fc1 Merge branch 'master' into renewer 2015-05-22 12:49:03 -07:00
Jakub Warmuz
f00b674131 Move --cert-path and --chain-path from global IConfig to subparsers. 2015-05-22 08:06:32 +00: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
ac9f97100c Merge remote-tracking branch 'github/letsencrypt/master' into test-mode
Conflicts:
	letsencrypt/tests/configuration_test.py
	letsencrypt/tests/network2_test.py
2015-05-12 21:16:56 +00:00
Jakub Warmuz
41e86df252 Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00