Commit graph

48 commits

Author SHA1 Message Date
Peter Eckersley
1c652716a2 Start splitting out tests for plugins.selection 2016-03-11 15:37:24 -08:00
Peter Eckersley
c6fece8b40 Also move plugin selection logic from display.ops 2016-03-11 15:24:57 -08:00
Seth Schoen
61b714099d Centralize all domain sanity checking in one place 2016-02-01 19:27:47 -08:00
Roy Wellington Ⅳ
44585f3c4d Remove a double space before this URL. 2016-01-30 19:55:16 -08:00
Roy Wellington Ⅳ
9c28364477 Make exception syntax Python 3 compatible.
Translate all except and raise statements that are in the old form to
the Python 3 compatible format.
2016-01-30 19:53:50 -08:00
bmw
90c7a73146 Merge pull request #2078 from letsencrypt/non-interactive
Implement non-interactive mode for the client.
2016-01-25 18:51:56 -08:00
Peter Eckersley
45f32f9cdc Do not say we've renewed a cert if it was reinstalled 2016-01-20 16:04:06 -08:00
Peter Eckersley
74f09fb7bd Never auto-select plugins in non-interactive mode
* We really want the user to pick one, so that the later addition of a
    second option doesn't cause -n mode to fail.
2016-01-09 15:43:58 -08:00
Peter Eckersley
548ba6b655 lint 2015-12-29 20:26:55 -08:00
Peter Eckersley
7daf773c73 Handle noninteractiv calls to iDisplay.checklist() 2015-12-29 20:23:23 -08:00
Peter Eckersley
5ed9ac5ae6 Handle non-interactivity of iDisplay.input() 2015-12-29 20:02:33 -08:00
Peter Eckersley
7626975248 Make iDisplay.menu() calls non-interactive where possible
- And provide helpful errors where they're not
2015-12-29 14:21:05 -08:00
Peter Eckersley
6daaa7a763 Add defaults / cli_flags for yesno() input 2015-12-29 00:03:57 -08:00
Joona Hoikkala
1ee9435db7 PEP8 2015-12-09 15:18:04 +02:00
Joona Hoikkala
1d3cb57aef Display meaningful error messages in manual domain entry, and give user an option to retry 2015-12-09 10:36:22 +02:00
Peter Eckersley
da609a2577 Merge pull request #1814 from joohoi/domaincheck
Check domain list from plugin get_all_names() and remove wildcard, punycode etc. [needs tweak]
2015-12-08 12:52:55 -08:00
Joona Hoikkala
3c1c3c3e8d Import and non-classmethod fix 2015-12-08 09:31:47 +02:00
Joona Hoikkala
51a5d7ceb0 Move validation code to main client 2015-12-08 09:05:11 +02:00
j
a4396b89a7 Remove ! at end of url (fixes open url in gnome-terminal)
The ! at the end of the url is parsed as part of
the url if one uses "Open Link" in gnome-terminal.
2015-12-04 00:47:58 +01:00
Peter Eckersley
7901c59cd0 Merge pull request #1524 from letsencrypt/email
Better UI when asking for email
2015-11-20 19:16:02 -08:00
Peter Eckersley
c3e2c58272 Fix comment nits 2015-11-20 19:02:50 -08:00
Brad Warren
350a07086f Remove confirmation in text display 2015-11-19 22:35:28 -08:00
Brad Warren
489e79d777 spacing 2015-11-19 22:13:04 -08:00
Brad Warren
2bdc60dfef Scoping rules are frustrating 2015-11-19 21:21:42 -08:00
Brad Warren
279c0d9ddf Comma 2015-11-19 21:16:44 -08:00
Brad Warren
2e06939fec Disable selection of misconfigured plugins 2015-11-19 21:15:54 -08:00
Peter Eckersley
77f2a29bfe Show the message about unsafe registration only conditionally
- If the user enters a blank email, or one that doesn't check out
2015-11-16 16:57:48 -08:00
Miquel Ruiz
99f9f1b106 Rename option and fix displayed info 2015-11-16 16:57:48 -08:00
Miquel Ruiz
36842b7bbb Ask for email unless --allow-unsafe-registration
Add new option that explicitly allows to not provide an email.
Fixes #414
2015-11-16 16:57:48 -08:00
Peter Eckersley
4083cd42ad Explain email recovery better 2015-10-14 15:09:55 -07: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
Jakub Warmuz
315b357781
Hide null installer (fixes #789). 2015-09-28 19:08:57 +00:00
Seth Schoen
791825151a Merge branch 'master' of ssh://github.com/letsencrypt/lets-encrypt-preview into treat_duplicate_as_renewal 2015-09-11 00:42:35 -07:00
Jakub Warmuz
33c2aed021
Merge remote-tracking branch 'github/letsencrypt/master' into lint 2015-09-11 07:15:10 +00:00
Seth Schoen
2006c3a067 Merge branch 'master' of ssh://github.com/letsencrypt/lets-encrypt-preview into treat_duplicate_as_renewal 2015-09-08 21:02:06 -07:00
Seth Schoen
7aa9fe845a Basic fix for #411 2015-09-08 01:33:03 -07:00
Jakub Warmuz
83185e5553
pep8 letsencrypt 2015-09-06 09:20:11 +00:00
Harlan Lieberman-Berg
dc4cc23377 Fix minor spelling errors in the code. 2015-09-05 22:35:34 -04:00
James Kasten
f71119681c Address most of first round of comments 2015-07-30 23:14:58 -07:00
James Kasten
e64e3ceab0 Proper misconfiguration message 2015-07-30 01:19:02 -07:00
James Kasten
1570873312 Fix single candidate plugin misconfiguration bug 2015-07-30 00:29:23 -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
4ce4e2f930
logger = logging.getLogger(__name__) 2015-06-25 19:55:22 +00:00
James Kasten
67f67fea02 Remove trailing whitespace 2015-06-24 14:53:28 -07:00
James Kasten
f8384127c0 Format and fix ssl_labs printout 2015-06-24 10:55:08 -07:00
James Kasten
1cd47d4af3 first pass for ssl labs 2015-06-22 23:23:57 -07:00
Jakub Warmuz
734868b015
Merge remote-tracking branch 'github/letsencrypt/master' into pkgs_sep_prep 2015-05-10 15:29:04 +00:00
Jakub Warmuz
41e86df252
Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00
Renamed from letsencrypt/client/display/ops.py (Browse further)