Hello, I am attempting to install an SSL for my server name using the Tutorial available here:
http://wiki.centos-webpanel.com/hostname-ssl-with-letsencryptI am using CentOS 7 with the default apache only configuration.
I am successful through step one and two, and my host name can be reached via HTTPS:
https://server3.bentsea.net/When I perform step 3 to enable HTTPS access via port 2031, there is no cwp-ssl.conf file. So I have created one with the following code:
Listen 2031
<VirtualHost 172.93.54.122:2031>
ServerName 172.93.54.122
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/server3.bentsea.net/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/server3.bentsea.net/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/server3.bentsea.net/fullchain.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
When restarting the cwpsrv, I get the following error:
Redirecting to /bin/systemctl restart cwpsrv.service
Job for cwpsrv.service failed because the control process exited with error code. See "systemctl status cwpsrv.service" and "journalctl -xe" for details.
The ouput for "journalctl -xe" yields the following error:
Jan 21 11:31:46 server3 systemd[1]: Starting CentOS Web Panel service (daemon)...
-- Subject: Unit cwpsrv.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwpsrv.service has begun starting up.
Jan 21 11:31:46 server3 cwpsrv[30103]: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /usr/local/cwpsrv/conf.d/cwp-ssl.conf:10
Jan 21 11:31:46 server3 cwpsrv[30103]: nginx: configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
I have been unable to locate any alternative cwp-ssl.conf code given that the error appears to be potentially with syntax or alternative directions for configuring correct use of an SSL for service over port 2031 with the letsencrypt issues SSL. Any help resolving this issue or with alternative directions for configuring for use on port 2031 would be greatly appreciated.