certbot/tests
Adrien Ferrand 7161e792e8 Fix the Nginx configuration during integration tests (#6801)
If you execute `tests/lock_test.py` or `tox -e integration` on a fairly recent machine, you will get the following error during tests executing against a live Nginx instance:
```
no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: x.x.x.x, server: y:y:y:y:z
```

Indeed, having no defined ssl certificate for a ssl port would inevitably lead to an error during the handshake SSL process between a client and this mis-configured nginx instance.

However it was not a problem one year before, because the handshake was not occurring in practice: the test just need to have a nginx started, and then immediately proceed to modify the configuration with a correct SSL setup. And nginx was able to start with a mis-configuration on SSL. 

But then this fix has been done: https://trac.nginx.org/nginx/ticket/178

Basically with this, validation of the configuration is done during nginx startup, that will refuse to start with invalid configuration on SSL. Consequently, all related tests are failing with a sufficiently up-to-date nginx. For now, it is not seen on Travis because Ubuntu Trusty is used, with an old Nginx.

The PR fixes that, by generating on the fly self-signed certificates in the two impacted tests, and pushing the right parameters in the Nginx configuration.

* Fix nginx configuration with self-signed certificates generated on the fly

* Fix lint/mypy

* Fix old cryptography

* Unattended openssl

* Update lock_test.py
2019-03-01 13:54:09 -08:00
..
integration Fix cryptography OCSP support (#6751) 2019-02-28 00:16:52 +01:00
letstest Fix cryptography OCSP support (#6751) 2019-02-28 00:16:52 +01:00
boulder-fetch.sh Forcibly reactivate tls-sni-01 challenges until complete removal. (#6683) 2019-01-29 19:23:08 -08:00
boulder-integration.sh Separate integration (#5814) 2018-08-29 14:11:13 -07:00
certbot-boulder-integration.sh Fix cryptography OCSP support (#6751) 2019-02-28 00:16:52 +01:00
certbot-pebble-integration.sh Implement POST-as-GET requests (#6522) 2018-11-29 19:42:06 -05:00
lock_test.py Fix the Nginx configuration during integration tests (#6801) 2019-03-01 13:54:09 -08:00
manual-dns-auth.sh Fix --allow-subset-of-names (#5690) 2018-03-08 11:12:33 -08:00
manual-dns-cleanup.sh Fix --allow-subset-of-names (#5690) 2018-03-08 11:12:33 -08:00
manual-http-auth.sh Enable boulder tests on Python 3 2017-04-15 02:32:18 +08:00
manual-http-cleanup.sh Merge the manual and script plugins (#3890) 2016-12-22 08:24:08 -08:00
modification-check.py Fail-fast in test/cover/lint scripts (#6487) 2018-11-14 13:57:40 -08:00
pebble-fetch.sh Fix the pebble fetch script (#6765) 2019-02-14 10:43:27 -08:00
run_http_server.py Drop support for EOL Python 2.6 and 3.3 2018-02-16 16:14:01 -08:00
tox-boulder-integration.sh Retry failures to start boulder (#5176) 2017-10-12 17:00:13 -07:00