James Kasten
3aee61f427
Merge pull request #76 from kuba/style-0
...
Fix recent commits style
2014-11-25 01:41:01 -08:00
Jakub Warmuz
f52556becd
Revert acme to 43ae01b
2014-11-25 10:01:04 +01:00
Jakub Warmuz
5ca95a55ca
Fix recent commits style
2014-11-25 09:48:35 +01:00
James Kasten
5e335f9a5f
PEP8 compliance main.py
2014-11-25 00:43:18 -08:00
James Kasten
9b1ab949c7
PEP compliance logger.py
2014-11-25 00:32:56 -08:00
James Kasten
8d1d9b0734
PEP8 support for acme, acme_test, apache_configurator
2014-11-25 00:15:47 -08:00
James Kasten
506c603e30
Merge branch 'master' of github.com:letsencrypt/lets-encrypt-preview
...
Conflicts:
letsencrypt/client/client.py
2014-11-24 19:03:29 -08:00
James Kasten
316e686ed5
git push origin masterMerge branch 'csr_utility_functions'
2014-11-24 18:59:43 -08:00
James Kasten
b245bbb10e
Added name check and attempted to clean up code - is PEP8 conformant
2014-11-24 18:58:34 -08:00
Seth Schoen
4453d3fab8
Add a missing crypto_util
2014-11-24 16:02:30 -08:00
Seth Schoen
b4492042d9
For crypto.util, read crypto_util
2014-11-24 15:59:32 -08:00
Seth Schoen
c741d969de
Correct PEM/DER return behavior
2014-11-24 15:52:48 -08:00
Seth Schoen
35c34ec6d4
PEP8 formatting fixes
2014-11-24 15:52:22 -08:00
Seth Schoen
2e8cdd071a
Integrate CSR and private key validation steps into client
2014-11-24 14:16:29 -08:00
Seth Schoen
7e71bccf28
Add documentation for parameters of new functions
2014-11-24 14:10:35 -08:00
James Kasten
539b9b12a7
Merge pull request #72 from kuba/le_util_test
...
le_util cleanup, le_util_test, docs
2014-11-24 04:50:49 -08:00
James Kasten
b8ee00bddd
Merge pull request #73 from kuba/acme_test_pretty_heisenbug
...
Remove heisenbug from acme_test
2014-11-24 04:46:53 -08:00
Jakub Warmuz
43ae01b4c8
Fix TODO encode? in acme.py
2014-11-24 13:45:15 +01:00
Jakub Warmuz
018ebd4087
Fix TODO encode? in apache_configurator.
...
`s = Random.get_random_bytes(CONFIG.S_SIZE)`, so `s` is `str`.
2014-11-24 13:32:55 +01:00
Jakub Warmuz
0dd530a4d1
Fix TODO encode? in create_sig
...
- n, e are `int`s, applied transformations make it `str`
- Crypto.Signature.PKCS1_v1_5.new [1] returns PKCS115_SigScheme, and its
`sign()` method returns `str` [2]
- docs is OK: requires `nonce` to be `str`
- `create_sig` is not called with custom `nonce` argument anywhere in
the code
[1] https://www.dlitz.net/software/pycrypto/api/2.6/Crypto.Signature.PKCS1_v1_5-module.html#new
[2] https://www.dlitz.net/software/pycrypto/api/2.6/Crypto.Signature.PKCS1_v1_5.PKCS115_SigScheme-class.html#sign
2014-11-24 13:30:10 +01:00
Jakub Warmuz
882170559d
TODO encode? comments for jose_b64encode
2014-11-24 13:15:09 +01:00
Jakub Warmuz
aef18c4413
JOSE Base64: encode str only, decode str or ascii unicode
2014-11-24 11:00:08 +01:00
Jakub Warmuz
0e6e85cf19
Merge remote-tracking branch 'github/master' into le_util_test
2014-11-24 10:49:23 +01:00
James Kasten
ee726d2c23
Merge pull request #74 from kuba/py26-compat
...
py26 doesn't support set {} constructor. Use frozenset.
2014-11-23 20:16:33 -08:00
Seth Schoen
ea6bec851b
Add utility functions for checking CSR and privkey
2014-11-23 18:21:56 -08:00
Jakub Warmuz
0d6a482d32
Merge remote-tracking branch 'github/master' into bugs/44
...
Conflicts:
letsencrypt/client/client.py
2014-11-24 02:44:55 +01:00
Jakub Warmuz
285761465b
Merge remote-tracking branch 'github/master' into le_util_test
...
Conflicts:
letsencrypt/client/client.py
letsencrypt/client/crypto_util.py
2014-11-24 02:29:09 +01:00
Jakub Warmuz
1c1d9221c8
py26 doesn't support set {} constructor. Use frozenset.
2014-11-24 02:23:27 +01:00
Jakub Warmuz
c2d0acb063
Remove heisenbug from acme_test
2014-11-24 02:16:24 +01:00
James Kasten
26e5535d21
Bring in @Kuba PEP-8 BranchMerge branch 'kuba-pep8'
2014-11-23 16:02:01 -08:00
James Kasten
83c267faa1
Fixed typos in crypto_util.py
2014-11-23 16:00:53 -08:00
Jakub Warmuz
421f541271
Allow unicode input for JOSE Base64
2014-11-23 22:27:22 +01:00
Jakub Warmuz
22bea4c975
Better tests for jose b64 padding
2014-11-23 22:18:00 +01:00
Jakub Warmuz
af4d955806
Fix JOSE encoding mess
2014-11-23 22:18:00 +01:00
Jakub Warmuz
6f32c41da3
le_util cleanup, le_util_test
2014-11-23 22:18:00 +01:00
schoen
0dc4ef1670
Merge pull request #60 from kuba/acme_test
...
Add acme_test. Sphinx-like doc in acme module.
2014-11-23 13:02:55 -08:00
Jakub Warmuz
c22d243728
Less generic exception catching in send()
2014-11-23 21:16:42 +01:00
Jakub Warmuz
725d05e8ac
Less generic exception for subprocess.check_call.
...
https://docs.python.org/2/library/subprocess.html#exceptions
2014-11-23 21:04:59 +01:00
Jakub Warmuz
cdde731aa4
LetsEncryptClientError
2014-11-23 21:04:59 +01:00
James Kasten
d2f4644b4f
Merge pull request #69 from kuba/libaugeas0
...
apt-get install libaugeas0
2014-11-23 11:53:32 -08:00
Jakub Warmuz
f7e415b368
apt-get install libaugeas0
...
libaugeas0 is still required, despite python-augeas from PyPI
2014-11-23 20:48:07 +01:00
James Kasten
034393c362
Merge pull request #64 from kuba/pypi-augeas
...
python-augeas from PyPI
2014-11-23 11:14:11 -08:00
Jakub Warmuz
628475e639
Clean crypto_util, add some doc
2014-11-23 19:55:56 +01:00
Jakub Warmuz
ab183511b7
Simple doc fix in configurator
2014-11-23 19:55:32 +01:00
Jakub Warmuz
c3897466b7
Refactor clients module.
...
- PEP8, pylint cleaning
- no-self methods -> functions, some of which were moved to acme or
challenge module.
- a bit of renaming
- more Pythonic code
- Sphinx-like doc.
2014-11-23 19:52:57 +01:00
Jakub Warmuz
cd9e30ad7e
python-augeas from PyPI
...
https://github.com/hercules-team/python-augeas/issues/2#issuecomment-64116945
2014-11-23 15:29:11 +01:00
Jakub Warmuz
891622c4f5
Merge remote-tracking branch 'github/master' into acme_test
...
Conflicts:
letsencrypt/client/acme.py
2014-11-23 12:56:37 +01:00
Seth Schoen
faaf101f08
More complete list of exceptions that can be raised
...
The acme.acme_object_validate() function can also raise ValueError
when given something that isn't JSON.
2014-11-22 17:36:10 -08:00
James Kasten
2cf5fbab3b
Merge pull request #57 from kuba/tests-setup
...
Tests setup
2014-11-22 17:19:50 -08:00
James Kasten
6a2e6f6828
Merge pull request #56 from kuba/clean-manifest
...
Clean MANIFEST.in
2014-11-22 14:27:09 -08:00