我正在尝试在我的apache2 web服务器上设置SSL,但它似乎根本不起作用。
我已经按照教程创build了openssl
cert文件,并正确configuration了/etc/apache2/sites-available/default-ssl.conf
。
每次我尝试使用https打开我的网站时,由于安全问题,我的浏览器拒绝连接。 它说我没有正确configuration我的网站。
在我的/var/log/apache2/error.log
我得到错误,说我的服务器证书不包括一个与服务器名称匹配的ID。
[Mon Apr 10 11:03:24.041813 2017] [mpm_prefork:notice] [pid 1222] AH00169: caught SIGTERM, shutting down [Mon Apr 10 11:03:30.566578 2017] [ssl:warn] [pid 661] AH01909: 127.0.0.1:443:0 server certificate does NOT include an ID which matches the server name [Mon Apr 10 11:03:31.579088 2017] [ssl:warn] [pid 1194] AH01909: 127.0.0.1:443:0 server certificate does NOT include an ID which matches the server name [Mon Apr 10 11:03:31.592958 2017] [mpm_prefork:notice] [pid 1194] AH00163: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2k configured -- resuming normal operations [Mon Apr 10 11:03:31.593136 2017] [core:notice] [pid 1194] AH00094: Command line: '/usr/sbin/apache2'
你有什么想法如何解决这个问题? 谢谢!