Commit Graph
773 Commits
Author SHA1 Message Date
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
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
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
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
Jakub Warmuz 560d436536 Add acme_test. Sphinx-like doc in acme module. 2014-11-22 23:23:46 +01:00
Jakub Warmuz 06a6969a24 Merge remote-tracking branch 'github/master' into tests-setup 2014-11-22 22:51:00 +01:00
James Kasten 7b7f1c5d9c Merge branch 'master' of github.com:letsencrypt/lets-encrypt-preview 2014-11-22 12:35:36 -08:00
James Kasten c8fc86a404 Added IRC channel to README 2014-11-22 12:35:24 -08:00
Jakub Warmuz e432d00e0a pylint dep for tox 2014-11-22 20:28:29 +01:00
Jakub Warmuz b901a84f2b Fix README.md ordered list 2014-11-22 15:15:33 +01:00
Jakub Warmuz 10707868db Add missing newline at end of file 2014-11-22 15:14:14 +01:00
Jakub Warmuz 1f844153fe Use tox for lint. 2014-11-22 15:12:33 +01:00
Jakub Warmuz 569f004f09 Clean MANIFEST.in 2014-11-22 15:05:44 +01:00
Jakub Warmuz 300a4f0b45 Use tox for tests 2014-11-22 15:04:36 +01:00
Jakub Warmuz 1c643d483e Basic dev/testing setup 2014-11-22 15:04:02 +01:00
Seth Schoen 8b75058783 Spelling correction 2014-11-22 00:22:52 -08:00
James Kasten 0ab8e4e6d4 Merge pull request #54 from kuba/setuptools-augeas
Setuptools augeas
2014-11-22 00:09:19 -08:00
James Kasten 385115cc4e Fixed #55 2014-11-21 23:46:18 -08:00
James Kasten 9896274478 Update to new CONFIG style 2014-11-21 23:39:05 -08:00
James Kasten 976560b0e9 Merged @kuba changes 2014-11-21 23:32:19 -08:00
James Kasten c260232f61 Merge pull request #52 from kuba/pep8
PEP-8, code base cleanup, bug fixes
2014-11-21 22:48:55 -08:00
Jakub Warmuz 1343cfa465 Add missing line of code (merge/rebase effect). 2014-11-22 03:10:22 +01:00
Jakub Warmuz d2ef9ea552 virtualenv --no-site-packages
Now, that all packages are installable using setuptools,
`--system-site-packages` is no longer necessary, and it's better to use
saner `--no-site-packages`.
2014-11-22 02:53:48 +01:00
Jakub Warmuz 731727cb38 Install Augeas using setuptools 2014-11-22 02:52:03 +01:00
James Kasten c7ac555a43 Fixed merge error 2014-11-21 17:15:03 -08:00
James Kasten 4c771ae32f Merged README to have both virtualenv and libssl-dev 2014-11-21 17:08:56 -08:00
James Kasten 032eb5ec1d fix dependency - Merge branch 'kuba-bugs/37' 2014-11-21 17:01:24 -08:00
James Kasten 45ef583a3c Merge pull request #51 from marcoscaceres/patch-1
Fixed typo
2014-11-21 16:21:37 -08:00
Jakub Warmuz 6fa555788e Clean augeas_configurator module. 2014-11-22 00:22:10 +01:00