Brad Warren
303f7ffe32
Added validator code
2015-07-22 13:47:09 -07:00
Jakub Warmuz
61e19c9882
DVSNIResponse.gen_cert, fix verify_cert, add tests.
2015-07-18 12:54:33 +00:00
Jakub Warmuz
d7d98d79ce
please pylint
2015-07-13 20:24:16 +00:00
Jakub Warmuz
c2a8195f19
Move _pyopenssl_cert_or_req_san to acme.
2015-07-13 11:02:27 +00:00
Jakub Warmuz
b9df69af9f
Basic dev/test setup for separate package subdirectories.
2015-07-10 16:38:42 +00:00
Jakub Warmuz
b0c72410ba
Unified vector loading in letsencrypt.
2015-07-10 15:49:18 +00:00
Jakub Warmuz
19c73249ca
Sort vectors: acme/testdata, separate acme and letsencrypt.
2015-07-10 15:16:48 +00:00
Jakub Warmuz
1d35946b4e
Fix PickPluginTest.test_no_defaults.
2015-07-10 06:51:09 +00:00
Jakub Warmuz
15f443dced
assert_called_once -> assertEqual(1, *.call_count)
2015-07-10 06:42:02 +00:00
Jakub Warmuz
56d8c60df6
Fix letsencrypt.tests.client_test.
2015-07-10 06:24:06 +00:00
Jakub Warmuz
0c46f80fdd
assert_callend_once -> assert_called_once
2015-07-10 05:44:21 +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
f24479ebfc
100% coverage for letsencrypt.account.
2015-07-10 05:17:24 +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
0d24f52f6e
Expose le_util.safe_open.
2015-07-09 11:14:25 +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
0d087788da
Accept new_reg in acme.client.Client.register.
2015-07-08 19:23:12 +00:00
Jakub Warmuz
36eafde213
Use ComparableRSAKey autowrap throughout the code base.
2015-07-08 12:07:05 +00:00
Jakub Warmuz
e05b10974c
test/acme_util.py: fix nonce lengths
2015-07-07 07:20:48 +00:00
Jakub Warmuz
02e7154c0d
Drop M2Crypto
2015-07-06 12:18:27 +00:00
Jakub Warmuz
61aa29d28c
Drop PyCrypto.
2015-07-06 12:18:22 +00:00
Jakub Warmuz
9197fa6b5c
acme: M2Crypto -> pyOpenSSL
2015-07-06 12:18:17 +00:00
Jakub Warmuz
e0293d81f3
acme: drop PyCrypto and use cryptography instead.
...
- Use cryptography in acme.jose.jwa/jwk.
- Change Crypto.Random to os.urandom,
c.f. https://cryptography.io/en/latest/random-numbers/?highlight=urandom
2015-07-05 20:36:20 +00:00
Brad Warren
13913fd8e0
Added traceback dump
2015-06-30 12:57:51 -07:00
Brad Warren
85b5bc0cb2
Reimplemented exception handling
2015-06-29 17:31:48 -07:00
James Kasten
abe1aa999a
Merge pull request #568 from kuba/cover
...
Bump coverage
2015-06-29 09:04:41 -07:00
James Kasten
e0fd6ee018
Merge pull request #565 from bradmw/traceback
...
Tracebacks and Forks
2015-06-29 08:52:14 -07:00
Jakub Warmuz
7abff038dc
Display tests: move test_visual to tests/display.py script.
2015-06-28 09:31:42 +00:00
Jakub Warmuz
fd333d39bb
Merge remote-tracking branch 'github/letsencrypt/master' into 485-cleanup
...
Conflicts:
letsencrypt/cli.py
2015-06-27 07:01:58 +00:00
Brad Warren
88507fea87
Stopped catching silly things
2015-06-26 18:07:40 -07:00
schoen
4e221eb9bd
Merge pull request #562 from bradmw/traceback
...
Log and hide tracebacks by default
2015-06-26 16:55:18 -07:00
Brad Warren
95a1432476
Come on Python 2.6...
2015-06-26 16:40:59 -07:00
Brad Warren
3f1c6e4a9c
Fixed reporter coverage
2015-06-26 16:29:13 -07:00
Brad Warren
d6246ae309
Special cased KeyboardInterrupt
2015-06-26 16:09:46 -07:00
Brad Warren
93b736a224
Logs and hides tracebacks
2015-06-26 15:26:33 -07:00
Jakub Warmuz
9d6cf6c6a2
Fix --help all to display options without topic.
2015-06-26 13:31:03 +00:00
Jakub Warmuz
4ce4e2f930
logger = logging.getLogger(__name__)
2015-06-25 19:55:22 +00:00
Jakub Warmuz
eb149b9129
CLI debug log file
2015-06-25 19:55:16 +00:00
Jakub Warmuz
3ade1d13f3
Merge remote-tracking branch 'github/letsencrypt/master' into renewer
...
Conflicts:
tests/boulder-integration.sh
2015-06-25 19:07:21 +00:00
Jakub Warmuz
f312bdac22
Fix unittests for dvsni_port.
2015-06-25 18:36:06 +00:00
James Kasten
bf69cf1f05
Merge pull request #504 from kuba/csr
...
Initial support for user-supplied CSRs (fixes : #370 )
2015-06-25 14:09:53 -04:00
James Kasten
3f2e427a71
Merge pull request #545 from letsencrypt/ssl_labs_urls
...
Add SSLLab URLs at the end of installation
2015-06-25 14:05:12 -04: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
schoen
f5def6b6d6
Merge pull request #535 from kuba/473-no-cli
...
Renewer dynamic dirs based on --config-dir/--work-dir (#473 without touching CLI)
2015-06-24 22:18:40 -07:00
Brad Warren
f35d8a5228
Merge remote-tracking branch 'upstream/master' into errors
2015-06-24 18:25:02 -07:00
Brad Warren
d15a386f92
Incorporated jdkasten's feedback
2015-06-24 18:24:54 -07: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