Commit graph

39 commits

Author SHA1 Message Date
Roland Shoemaker
7aa5edb212 Set CSR version in make_csr 2016-02-22 21:31:14 -08:00
Marcel Krüger
5289420692 Protect opened files against IO-exceptions 2016-01-29 20:40:28 +01:00
Brad Warren
75b551762b Expose wrapped, not dump 2015-12-23 19:09:05 -05:00
Brad Warren
b4b6d64ac6 Removed lies about return value 2015-10-17 13:54:24 -07:00
Brad Warren
0c2fe1002d Added notAfter and notBefore to crypto_util 2015-10-17 13:36:29 -07:00
bmw
505ebfaa45 Merge pull request #891 from ArchimedesPi/remove_crypto_util_cruft
crypto_util: Remove cruft
2015-10-05 13:00:52 -07:00
Liam Marshall
7b50f5d9bf Make pep8 happy 2015-10-04 15:42:05 -05:00
Liam Marshall
aa15fae11d crypto_util: merge _pyopenssl_load into pyopenssl_load_certificate 2015-10-04 15:39:29 -05:00
Liam Marshall
884d8e9905 crypto_util: Remove unused import 2015-10-04 11:29:21 -05:00
Liam Marshall
6994dad59b crypto_util: Remove asn1_generalizedtime_to_dt(...) 2015-10-04 11:17:07 -05:00
Liam Marshall
32da607ae5 crypto_util: Remove asn1_generalizedtime_to_dt(...)
Not used by any other code AFAIK (ack'd entire codebase).
2015-10-04 10:39:38 -05:00
James Kasten
67acebff34 pep8 and google style guide 2015-09-16 18:43:32 -07:00
Peter Eckersley
630c715350 lintmonster 2015-09-16 17:03:09 -07:00
Peter Eckersley
0325c6cde6 Make config singleton acquisition more robust
Fixing failures in testing environments
2015-09-16 15:56:06 -07:00
Peter Eckersley
1a2c983a9c Strict permission checking only upon request
Use --strict-permissions if you're running as a privileged user on a system
  where non-privileged users might have write permissions to parts of the lets
  encrypt config or logging heirarchy.  That should not normally be the case.

  Working toward a fix for #552
2015-09-16 13:13:24 -07:00
Peter Eckersley
bde5a1fe17 Merge branch 'treat_duplicate_as_renewal' into kuba_chain 2015-09-15 17:51:58 -07:00
Jakub Warmuz
491b7a7cde
Fix multi-cert chains in renewer 2015-09-10 21:48:34 +00:00
Jakub Warmuz
83185e5553
pep8 letsencrypt 2015-09-06 09:20:11 +00:00
Jakub Warmuz
e9c79edb19
Fix various Sphinx build problems 2015-08-22 14:30:59 +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
735bd924bf
Update letsencrypt to DVSNI v03 (fixes #597). 2015-07-17 17:44:35 +00:00
Jakub Warmuz
c2a8195f19
Move _pyopenssl_cert_or_req_san to acme. 2015-07-13 11:02:27 +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
0955012569
Move asn1_generalizedtime_to_dt todo comment to docstring. 2015-07-08 08:41:13 +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
4ce4e2f930
logger = logging.getLogger(__name__) 2015-06-25 19:55:22 +00:00
Jakub Warmuz
d804853958
Remove commented suject fields in make_csr 2015-06-25 16:08:52 +00: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
Jakub Warmuz
8e582dfff8
Merge remote-tracking branch 'github/letsencrypt/master' into cli-config-fixes
Conflicts:
	letsencrypt/constants.py
2015-06-23 07:47:48 +00:00
Jakub Warmuz
8e39a3a0ef
Collate multi-line logs, use logging.exception, other fixes. 2015-06-22 22:05:27 +00:00
Jakub Warmuz
635e585226
Initial support for "auth --csr" (fixes: #370) 2015-06-15 11:40:17 +00:00
Jakub Warmuz
9a7ade7cba
Rename cert_dir to csr_dir. 2015-06-02 17:42:23 +00:00
Seth Schoen
b2b70279c2 Merge branch 'kuba-test-mode' of ssh://github.com/letsencrypt/lets-encrypt-preview into renewer 2015-05-26 14:34:31 -07:00
Jacob Hoffman-Andrews
424acfe16e Fixes to running on command line.
Use cert_dir instead of cert_path
Restore server_url
When creating a unique file, only loop for EEXISTS, not other OS errors like
  permission denied.
Pass uid explicitly to make_or_verify_dir.
2015-05-21 18:58:40 -07:00
Jakub Warmuz
083bd8701b
get_sans_from_cert, 100% test coverage for crypto_util. 2015-05-19 14:14:34 +00:00
Jakub Warmuz
aeef964fb6
Merge remote-tracking branch 'github/letsencrypt/master' into get_sans 2015-05-12 21:27:10 +00:00
Jakub Warmuz
41e86df252
Move letsencrypt.client to letsencrypt 2015-05-10 12:32:05 +00:00
Renamed from letsencrypt/client/crypto_util.py (Browse further)