James Kasten
2b49443e86
Merge pull request #604 from kuba/rtfd
...
RTFD: install subpkgs.
2015-07-12 21:43:22 -07:00
Jakub Warmuz
d361937b67
RTFD: install subpkgs.
2015-07-12 13:39:40 +00:00
James Kasten
2f2137ef6b
Merge pull request #601 from kuba/pkgs_sep_prep
...
Update installation instructions for pkgs subdirs
2015-07-10 23:16:45 -07:00
Jakub Warmuz
10e993331c
Update installation instructions for pkgs subdirs (include trailing slash).
2015-07-11 06:09:52 +00:00
James Kasten
33224e7d77
Merge pull request #600 from kuba/subdirs-rename
...
Subdirs rename
2015-07-10 22:28:54 -07:00
Jakub Warmuz
04c12a5e38
Update package references after subdirs rename for Vagrant and Docker.
2015-07-11 05:15:10 +00:00
Jakub Warmuz
c85fa02495
Leave letsencrypt_ symlinks for Boulder integration testing.
2015-07-11 05:08:43 +00:00
Jakub Warmuz
a462e38cab
Update package references after subdirs rename.
2015-07-11 04:33:07 +00:00
Jakub Warmuz
120a94f84f
mv letsencrypt_* letsencrypt-*.
2015-07-11 04:31:18 +00:00
James Kasten
b7d3710579
Merge pull request #598 from kuba/pkgs_sep_prep
...
Separate packages
2015-07-10 15:10:51 -07:00
Jakub Warmuz
0b4a85c145
Once again fix travis/tox venv path.
2015-07-10 17:29:28 +00:00
Jakub Warmuz
ff8925d92f
Update sys.path in docs/conf.py for Sphinx to find subdir packages.
2015-07-10 17:22:52 +00:00
Jakub Warmuz
2ae6ac2bfd
Travis: tox-venv activation path adjustment
2015-07-10 17:13:25 +00:00
Jakub Warmuz
db1e078c06
Shared tox envdir
2015-07-10 16:40:46 +00:00
Jakub Warmuz
2e9cf9a5d5
Include requirements.txt in sdist
2015-07-10 16:39:05 +00:00
Jakub Warmuz
b9df69af9f
Basic dev/test setup for separate package subdirectories.
2015-07-10 16:38:42 +00:00
Jakub Warmuz
2f9cd68807
Move acme and plugins to respective subdirectories.
...
for x in acme letsencrypt_nginx letsencrypt_apache; do git mv $x _$x; mkdir $x; git mv _$x $x/$x; done
2015-07-10 16:18:15 +00:00
Jakub Warmuz
b0c72410ba
Unified vector loading in letsencrypt.
2015-07-10 15:49:18 +00:00
Jakub Warmuz
0e474436c4
Unified vector loading in acme.
2015-07-10 15:16:58 +00:00
Jakub Warmuz
19c73249ca
Sort vectors: acme/testdata, separate acme and letsencrypt.
2015-07-10 15:16:48 +00:00
James Kasten
cb3863b5fd
Merge pull request #593 from kuba/account-resource-json
...
Rewrite accounts and registration
2015-07-10 00:37:17 -07:00
Jakub Warmuz
c57cd239c3
Register key creation before writing out.
2015-07-10 07:25:29 +00:00
Jakub Warmuz
4ebc20402b
Pin mock<1.1.0 (Python 2.6 support).
2015-07-10 07:21:07 +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
James Kasten
b66c60731f
Merge pull request #596 from kuba/acme-resource
...
Fix new-regr -> new-reg typo
2015-07-09 12:11:05 -07:00
Jakub Warmuz
517c9bd736
Fix new-regr -> new-reg typo
2015-07-09 19:04:41 +00:00
James Kasten
55b897537d
Merge pull request #594 from kuba/acme-resource
...
Enforce "resource" field in request objects.
2015-07-09 11:42:13 -07:00
Jakub Warmuz
35c21d4cf4
Enforce "resource" field in request objects.
...
Corresponds to:
- https://github.com/letsencrypt/boulder/pull/442
- https://github.com/letsencrypt/acme-spec/pull/156
2015-07-09 13:37:25 +00:00
Jakub Warmuz
5e450e879c
Save account private_key.json as 0o400.
2015-07-09 11:33:02 +00:00
Jakub Warmuz
7aa749174b
Fix achall response key chmods security bug.
2015-07-09 11:26:27 +00:00
Jakub Warmuz
0d24f52f6e
Expose le_util.safe_open.
2015-07-09 11:14:25 +00:00
Jakub Warmuz
3e2d1c8abc
get_cert_file -> get_cert_path.
2015-07-09 10:51:21 +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
James Kasten
d850be2d73
Merge pull request #592 from kuba/acme-reg
...
acme: registration improvements
2015-07-08 13:53:20 -07:00
Jakub Warmuz
0d087788da
Accept new_reg in acme.client.Client.register.
2015-07-08 19:23:12 +00:00
Jakub Warmuz
7470bc8db6
RegistrationResource: return any phone/email from phones/emails or None.
2015-07-08 19:23:06 +00:00
James Kasten
97b09ea1c6
Merge pull request #587 from kuba/docs
...
Update docs
2015-07-08 12:06:47 -07:00
James Kasten
bb831206b5
Merge pull request #591 from kuba/cryptography
...
Drop M2Crypto and PyCrypto.
2015-07-08 12:04:45 -07:00
Jakub Warmuz
36eafde213
Use ComparableRSAKey autowrap throughout the code base.
2015-07-08 12:07:05 +00:00
Jakub Warmuz
a7817de4ab
Rewrite JWK.load, JWKRSA autowraps ComparableRSAKey.
2015-07-08 12:00:16 +00:00
Jakub Warmuz
0955012569
Move asn1_generalizedtime_to_dt todo comment to docstring.
2015-07-08 08:41:13 +00:00
Jakub Warmuz
90b27ff9cf
ComparableX509Test for cert and CSR
2015-07-07 17:00:08 +00:00