56 Commits
Author SHA1 Message Date
Brad Warren 8680a29c9d Merge branch 'master' into pyopenssl 2016-01-02 13:11:11 -05:00
Brad Warren 75b551762b Expose wrapped, not dump 2015-12-23 19:09:05 -05:00
Noah Swartz 253cc3dc8f have the handler actually set the level of the logger 2015-12-17 14:36:53 -08:00
Noah Swartz 4e9e01338c Merge branch 'config-parse' into issue_988 2015-12-17 10:38:59 -08:00
Noah Swartz 15386fd0de fix issue with parsing renewal confs 2015-12-16 18:55:39 -08:00
Brad Warren d21ca90560 Use dump on ComparableX509 2015-12-16 17:33:08 -08:00
Sachi King 16c8125045 Use print_function not print_statement
Change the print statements used into print functions.

The print satement is not valid in Python 3, however the print function
is valid in at least 2.6+.
2015-12-07 22:12:41 +13:00
Jakub Warmuz 5e8ed2bbd2 --dvsni-port -> --tls-sni-01-port 2015-11-07 18:24:17 +00:00
Jakub Warmuz 23d3c3b1e2 Rename --simple-http-port to --http-01-port 2015-11-01 11:01:23 +00:00
Brad Warren 2bedd57aa9 Merge branch 'master' into storage_paranoia 2015-10-22 13:01:20 -07:00
Brad Warren a643289662 Updated todos 2015-10-19 19:13:48 -07:00
Brad Warren 888d553db8 Merge branch 'master' into storage_paranoia 2015-10-17 17:27:04 -07:00
Jakub Warmuz 244a020b0a Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-14 17:26:35 +00:00
Brad Warren 0e6d652ce3 Move ConfigObj parsing inside of RenewableCert.__init__ 2015-10-13 18:25:31 -07:00
Brandon Kreisel d4af07a7f8 PEP8 Love: E126 Fix for #945 2015-10-12 16:43:22 -04:00
Jakub Warmuz 73ae361559 Merge remote-tracking branch 'github/letsencrypt/master' into standalone2 2015-10-12 19:36:46 +00:00
David Dworken 20d7576f66 Deleted duplicate line caused by #912 2015-10-12 15:14:13 -04:00
David Dworken 589145686f Don't print error message and only call os.geteuid() once 2015-10-12 15:02:07 -04:00
David Dworken 8ec7fdd323 Always create the folders 2015-10-11 16:20:18 -04:00
David Dworken a809a059f0 Don't create renewal_configs_dir and config_dir, instead just print a helpful error message and fail 2015-10-11 15:57:57 -04:00
David Dworken c23deb8a31 Merged in changes 2015-10-11 15:12:58 -04:00
David Dworken ef9312817e Alphabetized imports and added newline at end of file 2015-10-11 11:39:55 -04:00
David Dworken f8daf5f094 Fixed failing lint test and explicitly created all needed folders 2015-10-11 08:53:38 -04:00
David Dworken f96c34546e Fixes #902
Fix for #902

If the directory does't exist, it will create the directory before proceeding.
2015-10-10 18:33:44 -04:00
Jakub Warmuz e8118c862b Renewer logging setup (fixes #897) 2015-10-06 18:54:05 +00:00
Jakub Warmuz ed70c948aa Renewer: restore IConfig.simple_http_port data type. 2015-10-04 19:50:27 +00:00
Peter Eckersley 110f080de0 The renewer also needs a config singleton 2015-09-16 17:15:10 -07:00
Jakub Warmuz 491b7a7cde Fix multi-cert chains in renewer 2015-09-10 21:48:34 +00:00
James Kasten 3088a18f05 finish renewer error handling 2015-08-04 14:54:19 -07: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 9197fa6b5c acme: M2Crypto -> pyOpenSSL 2015-07-06 12:18:17 +00:00
James Kasten 3705594628 Merge pull request #554 from letsencrypt/renew_before_deploy
Try to renew certs before trying to deploy them
2015-06-26 16:25:30 -04:00
Seth Schoen c54f154ea6 Try to renew certs before trying to deploy them 2015-06-25 18:12:45 -07:00
Jakub Warmuz eb149b9129 CLI debug log file 2015-06-25 19:55:16 +00:00
Jakub Warmuz 3ade1d13f3 Merge remote-tracking branch 'github/letsencrypt/master' into renewer
Conflicts:
	tests/boulder-integration.sh
2015-06-25 19:07:21 +00:00
Jakub Warmuz 040f434a61 Renewer integration tests for standalone. 2015-06-25 17:43:17 +00:00
Jakub Warmuz 77ddc68d8e Quickfix for wrong renewer target paths.
IOError: [Errno 2] No such file or directory: '/tmp/le/config/archive/renewer/privkey2.pem'
2015-06-25 05:53:39 +00:00
Jakub Warmuz 38b497ef73 renewer: fix bug where renewer.conf wasn't read. 2015-06-25 05:36:02 +00:00
Jakub Warmuz 4de60f68ab Pass cli_config to RenewableCert 2015-06-25 05:35:49 +00:00
Jakub Warmuz b9f2823d6b renewer: _paths_parser 2015-06-25 05:35:15 +00:00
Jakub Warmuz e82f605c22 Merge branch '440-no-cli' into 473-no-cli
Conflicts:
	letsencrypt/cli.py
        letsencrypt/renewer.py
2015-06-23 08:17:07 +00:00
Jakub Warmuz 0b57daf473 Renewer dynamic dirs based on --config-dir/--work-dir (fixes #469). 2015-06-02 12:10:22 +00:00
Seth Schoen 2027110512 Add a single performance-related TODO comment 2015-06-01 11:34:12 -07:00
Jakub Warmuz a3d452c112 storage.config_with_defaults 2015-05-28 19:27:30 +00:00
Jakub Warmuz 8d1135c049 Private _AttrDict 2015-05-28 18:09:05 +00:00
Jakub Warmuz a00dc88ad1 Fix renewer pr docstrings 2015-05-28 07:45:41 +00:00
Seth Schoen b8a024b65b More generality for renewer config. (Still no CLI flags.) 2015-05-21 16:33:38 -07:00
Seth Schoen 8f25241170 Introduce proper renewer config via constants.py 2015-05-18 15:57:12 -07:00
Seth Schoen 0f64082f1d Document newly-added functions and methods 2015-05-16 21:27:06 -07:00
Seth Schoen 9a144b46bc Remove TODO referring to obsolete .config feature 2015-05-14 17:03:20 -07:00