Не могу запустить apache2 после установки новой сертификации ssl

после установки новой ssl-сертификации и редактирования default-ssl.conf apache2 не работает.

Это выходные данные apachectl configtest

root@localhost:/etc/ssl/private# apachectl configtest
Syntax OK
root@localhost:/etc/ssl/private#

, и это ошибка

root@localhost:~# service apache2 start
Job for apache2.service failed because the control process exited with 
error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.

выходных данных systemctl status apache2.service -l

root@localhost:/etc/ssl/certs# systemctl status apache2.service -l
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Sat 2019-09-07 21:51:55 UTC; 14s ago
Process: 4678 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 5043 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 4645 (code=exited, status=0/SUCCESS)

Sep 07 21:51:55 localhost systemd[1]: Starting The Apache HTTP Server...
Sep 07 21:51:55 localhost apachectl[5043]: Action 'start' failed.
Sep 07 21:51:55 localhost apachectl[5043]: The Apache error log may have more information.
Sep 07 21:51:55 localhost systemd[1]: apache2.service: Control process exited, code=exited status=1
Sep 07 21:51:55 localhost systemd[1]: apache2.service: Failed with result 'exit-code'.
Sep 07 21:51:55 localhost systemd[1]: Failed to start The Apache HTTP Server.

Вывод tail -n 25 /var/log/apache2/error.log

AH00016: Configuration Failed
[Sat Sep 07 21:14:20.929961 2019] [ssl:warn] [pid 4289] AH01909: 82.165.112.22:443:0 server certificate does NOT include an ID which matches the server name
[Sat Sep 07 21:14:20.984625 2019] [ssl:warn] [pid 4290] AH01909: 82.165.112.22:443:0 server certificate does NOT include an ID which matches the server name
[Sat Sep 07 21:14:20.988186 2019] [mpm_prefork:notice] [pid 4290] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1c configured -- resuming normal operations
[Sat Sep 07 21:14:20.988217 2019] [core:notice] [pid 4290] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 07 21:33:34.246734 2019] [mpm_prefork:notice] [pid 4290] AH00169: caught SIGTERM, shutting down
[Sat Sep 07 21:33:34.308342 2019] [ssl:emerg] [pid 4615] AH02565: Certificate and private key 82.165.112.22:443:0 from /etc/ssl/certs/coinemploi.fr_ssl_certificate.cer and /etc/ssl/private/ssl-cert-snakeoil.key do not match
AH00016: Configuration Failed
[Sat Sep 07 21:34:30.443165 2019] [ssl:warn] [pid 4644] AH01909: 82.165.112.22:443:0 server certificate does NOT include an ID which matches the server name
[Sat Sep 07 21:34:30.472705 2019] [ssl:warn] [pid 4645] AH01909: 82.165.112.22:443:0 server certificate does NOT include an ID which matches the server name
[Sat Sep 07 21:34:30.476554 2019] [mpm_prefork:notice] [pid 4645] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1c configured -- resuming normal operations
[Sat Sep 07 21:34:30.476587 2019] [core:notice] [pid 4645] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 07 21:35:36.736288 2019] [mpm_prefork:notice] [pid 4645] AH00169: caught SIGTERM, shutting down
[Sat Sep 07 21:35:36.805788 2019] [ssl:emerg] [pid 4686] AH02565: Certificate and private key 82.165.112.22:443:0 from /etc/ssl/certs/ssl-cert-snakeoil.pem and /etc/ssl/private/_.coinemploi.fr_private_key.key do not match
AH00016: Configuration Failed
[Sat Sep 07 21:36:12.816053 2019] [ssl:emerg] [pid 4710] AH02565: Certificate and private key 82.165.112.22:443:0 from /etc/ssl/certs/coinemploi.fr_ssl_certificate.cer and /etc/ssl/private/_.coinemploi.fr_private_key.key do not match
AH00016: Configuration Failed
[Sat Sep 07 21:38:04.248121 2019] [ssl:emerg] [pid 4755] AH02565: Certificate and private key 82.165.112.22:443:0 from /etc/ssl/certs/coinemploi.fr_ssl_certificate.cer and /etc/ssl/private/_.coinemploi.fr_private_key.key do not match
AH00016: Configuration Failed
[Sat Sep 07 21:46:33.318101 2019] [ssl:emerg] [pid 4932] AH02565: Certificate and private key 82.165.112.22:443:0 from /etc/ssl/certs/_.coinemploi.fr_ssl_certificate_INTERMEDIATE.cer and /etc/ssl/private/_.coinemploi.fr_private_key.key do not match
AH00016: Configuration Failed
[Sat Sep 07 21:51:55.381281 2019] [ssl:emerg] [pid 5046] AH02565: Certificate and private key 82.165.112.22:443:0 from /etc/ssl/certs/coinemploi.fr_ssl_certificate.cer and /etc/ssl/private/_.coinemploi.fr_private_key.key do not match
AH00016: Configuration Failed
0
задан 8 September 2019 в 01:11

0 ответов

Другие вопросы по тегам:

Похожие вопросы: