Compare commits
6 commits
93c9e450ff
...
5a22490dc8
Author | SHA1 | Date | |
---|---|---|---|
Mathieu Trossevin | 5a22490dc8 | ||
95108897b0 | |||
Mathieu Trossevin | fd0f03ab05 | ||
Mathieu Trossevin | 2b6b76b78d | ||
Mathieu Trossevin | 21eef58a96 | ||
Mathieu Trossevin | 9419242465 |
|
@ -20,6 +20,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
|
||||
### Fixed
|
||||
|
||||
* letsencrypt: Add required check when retrieving certificate. (Avoid TypeError.)
|
||||
|
||||
### Removed
|
||||
|
||||
### Security
|
||||
|
|
|
@ -157,6 +157,9 @@ class LetsEncrypt
|
|||
{
|
||||
$stream = stream_context_create(array("ssl" => array("capture_peer_cert" => true)));
|
||||
$read = stream_socket_client("ssl://" . $domain . ":443", $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $stream);
|
||||
if ($read === false) {
|
||||
return false;
|
||||
}
|
||||
$cont = stream_context_get_params($read);
|
||||
|
||||
return $cont;
|
||||
|
|
|
@ -766,7 +766,7 @@ op_del() {
|
|||
|
||||
# Deactivate web vhost (apache or nginx)
|
||||
if [ "$WEB_SERVER" == "apache" ]; then
|
||||
if a2query -s test12 >/dev/null 2&>1; then
|
||||
if a2query -s "${login}" >/dev/null 2&>1; then
|
||||
a2dissite "${login}.conf"
|
||||
fi
|
||||
rm -f /etc/apache2/sites-available/"$login.conf"
|
||||
|
|
Loading…
Reference in a new issue