Commit graph

536 commits

Author SHA1 Message Date
Jakub Warmuz
daa459f277
Add acme.standalone 2015-09-26 16:50:59 +00:00
Jakub Warmuz
1b24fdae84
acme: challenges helpers 2015-09-26 16:50:59 +00:00
Jakub Warmuz
d73b600eeb
acme: _serve_sni -> SSLSocket 2015-09-26 16:50:59 +00:00
Jakub Warmuz
08c0c4aeba
Explicit dependency on setuptools (pkg_resources). 2015-09-26 10:52:28 +00:00
Peter Eckersley
bde5a1fe17 Merge branch 'treat_duplicate_as_renewal' into kuba_chain 2015-09-15 17:51:58 -07:00
bmw
a150828a79 Merge pull request #753 from kuba/dns-v4
acme: v4 DNS challenge
2015-09-14 16:21:38 -04:00
Jakub Warmuz
33c2aed021
Merge remote-tracking branch 'github/letsencrypt/master' into lint 2015-09-11 07:15:10 +00:00
Jakub Warmuz
b3ade6abe4
Revert "Revocation: expect application/json (boulder#771)."
This reverts commit 39aff967a5.
2015-09-10 20:43:20 +00:00
Jakub Warmuz
39aff967a5
Revocation: expect application/json (boulder#771). 2015-09-10 20:17:13 +00:00
Jakub Warmuz
cc607480ae
acme: fetch_chain for multiple up links 2015-09-10 20:12:32 +00:00
Jakub Warmuz
94fa851b01
Merge branch 'acme-directory' into revocation 2015-09-09 20:45:57 +00:00
Jakub Warmuz
817ab468d1
py3 compat: str(exc) instead of exc.message 2015-09-09 20:21:33 +00:00
Jakub Warmuz
302e3ceb7d
Revocation: integration testable 2015-09-09 20:04:28 +00:00
Jakub Warmuz
bf754b6302
Add ACME Directory Resource 2015-09-09 17:22:20 +00:00
James Kasten
d7b1af2a31 Merge pull request #750 from hlieberman/fix-spelling
Fix minor spelling errors in the code.
2015-09-09 00:00:03 -04:00
James Kasten
01b1172df2 Merge pull request #751 from hlieberman/urllib3-injection
Make urllib3 injection more version specific.
2015-09-08 23:55:42 -04:00
James Kasten
b0085cd47b Merge pull request #704 from kuba/py3
Bring back Python 3 support for acme
2015-09-08 23:54:23 -04:00
Harlan Lieberman-Berg
10460eb285 Add no cover pragma, URL for documentation. 2015-09-06 13:58:50 -04:00
Jakub Warmuz
dbf5d086bd
v4 DNS challenge 2015-09-06 11:47:56 +00:00
Jakub Warmuz
89c99a1f34
pep8 acme 2015-09-06 09:19:26 +00:00
Jakub Warmuz
138f1d1b28
lint: space check for dict-separator 2015-09-06 08:30:49 +00:00
Harlan Lieberman-Berg
503afebd54 Make urllib3 injection more version specific. 2015-09-05 22:47:25 -04:00
Harlan Lieberman-Berg
dc4cc23377 Fix minor spelling errors in the code. 2015-09-05 22:35:34 -04:00
Jakub Warmuz
8163e055a1
Disable test_probe_connection_error (problems with Python 3). 2015-09-02 18:50:59 +00:00
Jakub Warmuz
c6e4c7dea1
setup.py: update/fix deps. 2015-09-01 19:57:41 +00:00
Jakub Warmuz
a74eff5fbd
Revert "Revert PR #708."
This reverts commit 70e311b43f.
2015-08-28 06:40:19 +00:00
Jacob Hoffman-Andrews
70e311b43f Revert PR #708.
https://github.com/letsencrypt/letsencrypt/pull/708 broke the Boulder CI build
because Travis runs Ubuntu 12.04, which has an older setuptools. See
https://github.com/letsencrypt/boulder/issues/681.
2015-08-27 13:38:32 -07:00
James Kasten
091af07c1c Merge pull request #706 from kuba/uri-shift
Shift URIs around (acme-spec#134, fixes #576).
2015-08-27 13:53:50 -04:00
Jakub Warmuz
fc4990cf16
Fix typo 2015-08-26 21:05:08 +00:00
Jakub Warmuz
217b40379f
Merge branch 'master' into mock-2.6 2015-08-25 06:36:56 +00:00
Jakub Warmuz
5154cc92d6
Merge branch 'master' into uri-shift 2015-08-25 06:36:42 +00:00
Jakub Warmuz
7f6d4c5f84
Merge branch 'master' into py3 2015-08-25 06:35:35 +00:00
James Kasten
48467a1b38 Merge pull request #707 from kuba/log-http-req-params
Log HTTP request params (including contents).
2015-08-24 17:10:00 -04:00
James Kasten
8a6dfb1516 Merge pull request #703 from kuba/docs
Fix various Sphinx warnings, errors
2015-08-24 17:08:53 -04:00
Jakub Warmuz
089528ed2a
Fix ambiguous cross-references in docs 2015-08-22 14:37:32 +00:00
Jakub Warmuz
e9c79edb19
Fix various Sphinx build problems 2015-08-22 14:30:59 +00:00
Jakub Warmuz
60aa1b2ecb
Log HTTP request params (including contents). 2015-08-22 12:36:52 +00:00
Jakub Warmuz
79853fa098
Shift URIs around (acme-spec#134, fixes #576). 2015-08-22 12:20:38 +00:00
Jakub Warmuz
a7df468347
mock<1.1.0 only for py2.6. 2015-08-22 11:01:28 +00:00
Harlan Lieberman-Berg
bc530e457e Fix minor misspelling error. 2015-08-22 02:51:24 +02:00
Jakub Warmuz
4d30ec07fb
Update test name to match acme v04 semantics. 2015-08-19 20:38:03 +00:00
Jakub Warmuz
504b290726
Fix py3 compat in acme. 2015-08-19 20:35:30 +00:00
Brad Warren
0aaf9f2be7 Updated tests to update challenge changes 2015-08-13 18:41:49 -07:00
Brad Warren
14c150ae17 Fixed unit tests and lint 2015-08-05 15:39:31 -07:00
Jakub Warmuz
eacf658003
py3 compat 2015-07-31 22:45:48 +00:00
Jakub Warmuz
68d34391dd
Fix test_good_token 2015-07-31 22:15:56 +00:00
Jakub Warmuz
57110f4c18
acme: simplehttp v04 2015-07-31 21:30:08 +00:00
Jakub Warmuz
ceed8a71c1
DeserializationError: more meaningful message 2015-07-31 21:19:07 +00:00
Jakub Warmuz
ca5823ffd8
acme: progress with v03 Simple HTTP challenge. 2015-07-29 20:58:54 +00:00
Jakub Warmuz
a55991055e
Human meaningful exception message for decoding fields with minimum length. 2015-07-25 18:17:53 +00:00
Jakub Warmuz
de3b48640b
Doc fixes. 2015-07-25 15:48:14 +00:00
Jakub Warmuz
e0651ad050
Remove Recovery Token. 2015-07-25 12:00:04 +00:00
Brad Warren
83ad476a6d Improved logging and error handling 2015-07-23 17:09:09 -07:00
Brad Warren
c927f0c89a Finished basic Apache test framework 2015-07-22 18:25:09 -07:00
Jakub Warmuz
2028c3a454
Remove obsolete comment. 2015-07-19 12:59:10 +00:00
Jakub Warmuz
00298173a2
Merge branch 'dvsni-verify' into dvsni-v03
Conflicts:
	acme/acme/challenges.py
	acme/acme/challenges_test.py
	letsencrypt/achallenges.py
	letsencrypt/crypto_util.py
	letsencrypt/plugins/common.py
	letsencrypt/tests/achallenges_test.py
2015-07-18 17:58:22 +00:00
Jakub Warmuz
61e19c9882
DVSNIResponse.gen_cert, fix verify_cert, add tests. 2015-07-18 12:54:33 +00:00
Jakub Warmuz
f3538cd114
Add comment about _DEFAULT_DVSNI_SSL_METHOD. 2015-07-18 07:33:46 +00:00
Jakub Warmuz
33d7f205fa
Merge remote-tracking branch 'github/letsencrypt/master' into dvsni-verify
Conflicts:
	acme/acme/challenges.py
2015-07-18 06:51:26 +00:00
Jakub Warmuz
fcc470d0a2
Fix "reg vs new-reg" encoding problem. 2015-07-17 14:59:32 +00:00
Jakub Warmuz
d618a66c2e
Remove old protocol ChallengeResponse code. 2015-07-17 14:59:32 +00:00
Jakub Warmuz
b943fab35a
Require argparse only in Python 2.6.
Fixes packaging issues.
2015-07-15 15:38:30 +00:00
Jakub Warmuz
d7d98d79ce
please pylint 2015-07-13 20:24:16 +00:00
Jakub Warmuz
bfe6adf215
py3 compat 2015-07-13 20:19:32 +00:00
Jakub Warmuz
deacfc8a74
Merge remote-tracking branch 'github/letsencrypt/master' into dvsni-verify 2015-07-13 19:27:13 +00:00
Jakub Warmuz
c546dddd7f
Add DVSNIResponse.verify_cert. 2015-07-13 19:26:26 +00:00
Jakub Warmuz
9f31976928
Add acme.crypto_util._serve_sni and ServeProbeSNITest. 2015-07-13 19:26:25 +00:00
Jakub Warmuz
c2a8195f19
Move _pyopenssl_cert_or_req_san to acme. 2015-07-13 11:02:27 +00:00
Jakub Warmuz
ccc6a3212b
Simple DVSNI verification 2015-07-12 19:11:55 +00:00
Jakub Warmuz
1bb6763595
acme: Update DVSNI to v03. 2015-07-12 17:23:37 +00:00
Jakub Warmuz
5859e87ced
b64encode: no support for bytearray (py2.6 problems) 2015-07-12 15:20:25 +00:00
Jakub Warmuz
c0ba26776a
Support for py3.3+ in acme 2015-07-12 11:53:18 +00:00
Jakub Warmuz
a876a664df
Add py3 tox tests for acme.jose 2015-07-12 11:37:56 +00:00
Jakub Warmuz
802b9d4a43
Support for py3.3+ in acme.jose. 2015-07-12 11:37:56 +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
15f443dced
assert_called_once -> assertEqual(1, *.call_count) 2015-07-10 06:42:02 +00:00
Jakub Warmuz
517c9bd736
Fix new-regr -> new-reg typo 2015-07-09 19:04:41 +00: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
1bc9e7cb64
Registration: drop singular email/phone 2015-07-09 06:53:06 +00: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
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
90b27ff9cf
ComparableX509Test for cert and CSR 2015-07-07 17:00:08 +00:00
Jakub Warmuz
9ab40444b6
More Python data model fixes for acme. 2015-07-07 08:15:33 +00:00
Jakub Warmuz
20a08b50f2
ComparableX509 and ComparableX509Req: __eq__, __ne__, __hash__ data model fixes. 2015-07-07 08:05:41 +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
Jakub Warmuz
4407210e01
Fix --no-verify-ssl in HEAD, refactor acme.client_tests.
Fix #521 by introducing MissingNonceError, which by shows response
headers when printed to STDOUT. More sensible solution (a'la #523) is
blocked by boulder#417 (HTTP 405 response for HEAD).

Split out ClientNetworkWithMockedResponseTest from ClientNetworkTest,
which improves readability and makes it easier to test (less mocks).
2015-07-03 09:46:30 +00:00
Jakub Warmuz
2b32b94c0b
acme.client.ClientNetwork 2015-07-03 09:46:24 +00:00
James Kasten
e140eca4f3 Merge pull request #570 from kuba/simplehttp
SimpleHTTP fixes
2015-07-02 09:19:21 -07:00
Jakub Warmuz
2ec451d00b
IConfig.simple_http_port (fixes #542). 2015-06-29 07:58:36 +00:00
Jakub Warmuz
29e56d442f
Fix line-too-long 2015-06-29 07:56:22 +00:00
Jakub Warmuz
ce32de023d
Move simple_http_simple_verify to SimpleHTTPResponse.simple_verify. 2015-06-29 07:56:21 +00:00
Jakub Warmuz
36752a3dab
simpleHttp needs text/plain or absent. 2015-06-29 07:53:28 +00:00
Jakub Warmuz
a0acf7c703
acme.verify.simple_http_simple_verify 2015-06-29 07:50:31 +00:00
Jakub Warmuz
cfbd33809e
Remove acme.util 2015-06-28 09:27:17 +00:00
Jakub Warmuz
4ce4e2f930
logger = logging.getLogger(__name__) 2015-06-25 19:55:22 +00:00
Seth Schoen
d4bdba9726 Merge branch 'acme-spec-158' of https://github.com/kuba/lets-encrypt-preview
Resolved conflict in errors.py (LetsEncryptContAuthError renamed
to ContAuthError)

Conflicts:
	letsencrypt/errors.py
2015-06-23 15:55:13 -07:00
Jakub Warmuz
4fb1685b55
Update error codes, add "error" field to ChallengeBody (acme-spec#158). 2015-06-23 17:57:11 +00:00
Jakub Warmuz
57f67c4109
Rewrap after errors rename, doc fixes. 2015-06-22 22:43:42 +00:00
James Kasten
655331c9cf Merge pull request #532 from kuba/logging-without-cli
Logging improvements (without touching CLI)
2015-06-22 18:32:47 -04:00
Jakub Warmuz
8e39a3a0ef
Collate multi-line logs, use logging.exception, other fixes. 2015-06-22 22:05:27 +00:00
Jakub Warmuz
28f5c7d666
logs: collate omitted empty fields 2015-06-22 22:05:27 +00:00
Jakub Warmuz
e17bd684bb
Debug log received response for GET/POST 2015-06-22 22:05:27 +00:00
Jakub Warmuz
b6ef25e911
Fix review comments (typo, inheritance fix). 2015-06-22 22:02:43 +00:00
Jakub Warmuz
bff89936af
Merge remote-tracking branch 'github/letsencrypt/master' into acme-resource-json
Conflicts:
	acme/messages_test.py
2015-06-22 21:03:57 +00:00
Jakub Warmuz
e0a1e8f4e8
JSONDeSerializable acme.messages.Resource.
Provides API necessary to implement JSON-based account storage as
described at
https://github.com/letsencrypt/lets-encrypt-preview/pull/362#issuecomment-97946817
2015-06-22 20:41:45 +00:00
Jakub Warmuz
d970987b79
Fix comment typo 2015-06-22 20:30:17 +00:00
Jakub Warmuz
52d6e9b674
acme-spec#118 revoke. 2015-06-22 20:26:52 +00:00
Jakub Warmuz
1720864b44
acme.client: locally disable too-many-instance-attributes. 2015-06-22 19:55:47 +00:00
Jakub Warmuz
b4d63cbbb3
Move letsencrypt.network to acme.client. 2015-06-22 04:52:08 +00:00
Jakub Warmuz
a278d53f52
Rename messages2 to messages. 2015-06-22 04:52:08 +00:00
Jakub Warmuz
aa6faadb5c
Add ChallangeResponseTest 2015-06-22 04:52:08 +00:00
Jakub Warmuz
c208e810ee
Remove old messages schemata. 2015-06-22 04:52:07 +00:00
Jakub Warmuz
c5d4f91bf7
Remove old messages and network 2015-06-22 04:52:07 +00:00
Jakub Warmuz
8afc26a736
Fix typo 2015-06-19 04:10:51 +00:00
Jakub Warmuz
896d2be1db
SimpleHTTP.tls -> SimpleHTTPResponse.tls bug, MAX_PATH_LEN, good_path, scheme 2015-06-14 17:32:25 +00:00
Jakub Warmuz
d53120f25f
Fix SimpleHTTP tests and omitempty bug. 2015-06-12 09:21:30 +00:00
Jakub Warmuz
bc9373929a
Add SimpleHTTP.tls 2015-06-12 08:23:43 +00:00
Jakub Warmuz
7f5abba83e
Rename SimpleHTTPS to SimpleHTTP. 2015-06-12 08:23:32 +00:00
Jakub Warmuz
fd39479810
Add an anti-replay nonce facility (fixes: #488). 2015-06-11 12:21:26 +00:00
Seth Schoen
58156a29d3 Fix typos 2015-05-19 17:06:06 -07:00
Jakub Warmuz
ac0868b6de
acme.messages2.Error title is omitempty 2015-05-19 20:13:55 +00:00
Jakub Warmuz
cd6b9bc9c7
Fix coverage for acme.messages2.Error 2015-05-19 20:09:11 +00:00
Jakub Warmuz
0018bc0500
Error: typ/title no omitempty 2015-05-19 19:50:00 +00:00
Jakub Warmuz
41115bfc77
Spec and Boulder compatibility fixes.
Relevant acme-spec:
- https://github.com/letsencrypt/acme-spec/issues/127
- https://github.com/letsencrypt/acme-spec/pull/119
- https://github.com/letsencrypt/acme-spec/issues/98
- https://github.com/letsencrypt/acme-spec/issues/92

Relevant boulder:
- https://github.com/letsencrypt/boulder/pull/170
- https://github.com/letsencrypt/boulder/issues/128
2015-05-19 19:42:53 +00:00
Jakub Warmuz
c7aff67132
Merge branch 'bugs/402' into pkgs_sep_prep 2015-05-10 19:18:27 +00: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
Jakub Warmuz
3a6bd7123d
Move acme to top-level 2015-05-10 12:26:17 +00:00