我的应用程序中未启用 SSL

我的应用程序中未启用 SSL

我尝试在我的应用中启用 SSL,但不起作用。这是我的应用启用站点的配置。

<VirtualHost *:443>
                ServerName app1
                ServerAdmin [email protected]

                ErrorLog ${APACHE_LOG_DIR}/error.log
                LogLevel warn
                CustomLog ${APACHE_LOG_DIR}/access.log combined
                DocumentRoot /var/www/app1
                #SSLEngine on
                SSLVerifyClient require
                SSLVerifyDepth 10
                #SetEnv proxy-initial-not-pooled

                #SSLCertificateFile /path/to/your_domain_name.crt
                #SSLCertificateKeyFile /path/to/your_private.key
                #SSLCertificateChainFile /path/to/DigiCertCA.crt
                #SSLCertificateFile /root/ca/intermediate/certs/www.example.com.cert.pem
                SSLCACertificateFile /root/ca/intermediate/certs/www.example.com.cert.pem
                #SSLCertificateKeyFile /root/ca/intermediate/private/www.example.com.key.pem
                #SSLCertificateChainFile /root/ca/intermediate/certs/ca-chain.cert.pem
</VirtualHost>

我正在尝试启用客户端身份验证(而不是服务器身份验证),但每当我重新启动服务器时,都会出现以下错误。

[Fri Jun 23 21:25:18.965139 2017] [ssl:emerg] [pid 3334:tid 139960286734208] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/apache2/error.log for more information
[Fri Jun 23 21:26:24.843268 2017] [ssl:emerg] [pid 3385:tid 139981882820480] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/apache2/sites-enabled/app1.conf:1)

相关内容