Commit graph

236 commits

Author SHA1 Message Date
Erica Portnoy
e2c4da5de1 coverage 2017-10-12 17:23:39 -07:00
Erica Portnoy
34d7f98b63 Add logger.info message for using default address in tlssni01 auth 2017-10-12 17:17:25 -07:00
Erica Portnoy
c8202dbfb4 Address review nits 2017-10-12 17:14:30 -07:00
Erica Portnoy
3a94e8cac9 Merge branch 'master' into issue_5030 2017-10-12 17:04:19 -07:00
Joona Hoikkala
232f5a92d1 Fix naming in error message (#5181) 2017-10-11 08:18:41 -07:00
Brad Warren
13b4a4e1c2 Bump version to 0.20.0 2017-10-04 15:57:16 -07:00
Erica Portnoy
5ddde6b9ea python3 support 2017-10-04 13:50:03 -07:00
Erica Portnoy
8022d6c6f0 update docstring 2017-10-04 13:01:05 -07:00
Erica Portnoy
7567cdb0ce update unit tests 2017-10-04 12:35:57 -07:00
Erica Portnoy
be628544f8 don't add vhosts twice 2017-10-04 12:30:45 -07:00
Erica Portnoy
022f9317a5 address multiple default_server problem 2017-10-04 12:19:59 -07:00
Brad Warren
1f258449a4
Release 0.19.0 2017-10-04 12:11:20 -07:00
Erica Portnoy
352d2c6173 don't assume order from a set 2017-10-03 16:19:47 -07:00
Erica Portnoy
47b754e580 add configurator tests and leave finding the first server block for another PR 2017-10-03 15:11:21 -07:00
Erica Portnoy
ef4ee40ea2 add test for create_new_vhost_from_default 2017-10-02 17:36:41 -07:00
Erica Portnoy
d33da9bc7f Add docstring for create_new_vhost_from_default 2017-10-02 12:26:25 -07:00
Erica Portnoy
b748af3171 remove unneeded custom copy from Addr 2017-10-02 12:23:31 -07:00
Erica Portnoy
f764b422dd remove unused import 2017-10-02 12:19:24 -07:00
Erica Portnoy
40ac4f04c9 Switch isinstance(x, str) to isinstance(x, six.string_types) in the Nginx plugin 2017-10-02 12:02:31 -07:00
Erica Portnoy
c9e10e03c3 Fix existing bugs in nginxparser.py and obj.py 2017-09-30 14:41:50 -07:00
Erica Portnoy
4ef031ab39 make new vhost ssl 2017-09-29 18:39:08 -07:00
Erica Portnoy
f748627d18 remove traceback 2017-09-29 18:37:22 -07:00
Erica Portnoy
19235f3cc6 Allow installation if there's no appropriate vhost 2017-09-29 18:34:18 -07:00
Erica Portnoy
a805180cee add flag to suppress raising error if no match is found 2017-09-28 13:46:02 -07:00
Erica Portnoy
09309b885e Update test 2017-09-27 17:09:14 -07:00
Erica Portnoy
c8df0f9cde Allow authentication if there's no appropriate vhost 2017-09-27 17:06:23 -07:00
Brad Warren
a7267b0fcd Bump version to 0.19.0 2017-09-05 16:07:03 -07:00
Brad Warren
756c44f7af
Release 0.18.0 2017-09-05 16:06:43 -07:00
ohemorange
8ad18cbe6e Use ffdhe2048 Nginx DH params to fix Weak-DH bug (#4973)
* Rename plugins.common.install_ssl_options_conf to plugins.common.install_version_controlled_file

* Install ssl_dhparams file

* Add installation test

* Add ssl_dhparam option when making a server block ssl

* add install_ssl_dhparams to Installer common plugin class

* Remove redundant code and tests

* update MANIFEST.in
2017-09-01 07:57:30 -07:00
Brad Warren
ae0be73b53 Make common Installer base class (#5055)
* Add installer class

* Add wrapped reverter methods to common.Installer.

* Use Installer class in Apache plugin

* Use Installer class in Nginx plugin

* Don't create reverter in Apache and Nginx plugins
2017-08-28 17:06:09 -07:00
Noah Swartz
df71ec33b3 switch from triple quotes to single quotes 2017-08-28 13:45:42 -05:00
Noah Swartz
2c9e072a9f link to nginx documentation 2017-08-15 17:39:23 -07:00
Noah Swartz
4d72fa42e3 expand nginx no name error 2017-08-15 17:00:03 -07:00
Brad Warren
d4676610e9 Unhide Nginx (#4969)
* Be careful with new interaction from enabling nginx

* Fix py3 compataibility & better docs

* Make minor changes to @pde's PR to unhide nginx

* unhide nginx plugin

* Only protect against nginx interaction in cb-auto
2017-08-07 08:36:41 -07:00
Brad Warren
744c993040 Bump version to 0.18.0 2017-08-01 17:01:19 -07:00
Brad Warren
912d235466
Release 0.17.0 2017-08-01 17:01:07 -07:00
ohemorange
0321c0cb4c Change add_server_directives replace=True behavior to attempt to replace, but append on failure to find. (#4956)
* Change add_server_directives replace=True behavior to attempt to replace, but append on failure to find.

* Remove try/except around add_server_directives
2017-07-26 13:57:25 -07:00
ohemorange
57e56cc97b Candidate 0.16.0 (#4908)
* Release 0.16.0

* Bump version to 0.17.0
2017-07-06 15:57:11 -07:00
Brad Warren
828363b21a Fix nginx --dry-run (#4889)
* Revert "Don't save keys/csr on dry run (#4380)"

This reverts commit e034b50363.

* Don't save CSRs and keys during dry run

* Factor out _test_obtain_certificate_common

* Add test_obtain_certificate_dry_run

* Wrap key from make_key in util.Key

* Wrap result from make_csr in util.CSR
2017-06-30 08:10:55 -04:00
Brad Warren
93f094a86e Test additional subcommands in integration tests (#4855)
* Test additional subcommands

* Test rollback

* quote original variable

* Specifically set installer to work around #4858.
2017-06-21 13:49:15 -07:00
Brad Warren
0aab244846 Bump version to 0.16.0 2017-06-08 09:32:57 -07:00
Brad Warren
74acd1ee5a
Release 0.15.0 2017-06-08 09:32:41 -07:00
Brad Warren
d25069d89b Remove reference to .new in Nginx's SSL options. (#4769) 2017-06-01 15:26:54 -07:00
ohemorange
fc097de5ff Refactor nginx file update mechanism in preparation for working with apache plugin (#4720)
* move install_ssl_options_conf functionality to common

* add no cover

* compute current hash instead of saving

* make current hash be computed; switch to list of all canonical hashes

* put message directly into assertion

* don't pass logger

* add docstring

* Add unit tests for certbot.plugins.common.install_ssl_options_conf
2017-06-01 09:04:48 -07:00
ohemorange
033c995bd2 Update options-ssl-nginx.conf inprepare if it hasn't been manually modified (#4689)
Fixes #4559.

* Update options-ssl-nginx.conf in prepare, if it hasn't been modified.

* add previous options-ssl-nginx.conf hashes

* InstallSslOptionsConfTest

* remove .new file and only print warning once

* save digest to /etc/letsencrypt

* add comment reminding devs to update hashes

* add comment and test for sha256sum

* treat hash file as text file because python3

* move constants and rename hidden digest file
2017-05-23 13:18:50 -07:00
ohemorange
23e6c28d80 Allow Nginx to insert include files with comments inside (#4666)
* add failing test case

* allow include files to insert comments

* lint
2017-05-15 15:30:50 -07:00
Brad Warren
2754a2d0ae Bump version to 0.15.0 2017-05-04 16:52:29 -07:00
Brad Warren
4be7efbf74
Release 0.14.0 2017-05-04 16:52:13 -07:00
ohemorange
a5bd0cf50c Add a test for #4557 (#4609) 2017-05-02 18:37:54 -07:00
ohemorange
7016874243 Switch to using include directive for Nginx constants (#4557)
* Switch to using include directive for Nginx constants

* remove deprecated comment

* give better error message when attempting to insert an existing directive

* make code more readable

* add docstrings

* allow a duplicated directive if it's identical

* comment out precisely repeated directives

* add comments
2017-05-02 17:56:56 -07:00