Hostname SSL with Letsencrypt

Letsencrypt SSL Installation for Hostname – How to guide

1st you need to add the subdomain to your DNS manager and point it to the server, also you need to add the sudomain through Vhost by adding bellow lines to the new file /usr/local/apache/conf.d/vhosts-hostname.conf

# vhost_start

DocumentRoot "/usr/local/apache/htdocs/"

<IfModule mod_suexec.c>
        SuexecUserGroup nobody nobody

<IfModule mod_suphp.c>
        suPHP_UserGroup nobody nobody

<Directory "/usr/local/apache/htdocs">
        AllowOverride All

# vhost_end

Don’t forget to replace the hostname and the server Ip with yours, after adding this lines restart the apache

service httpd restart

and check if the subdomain is showing apache default page, if it shows the default page then navigate to 2nd step
please note : subdomain and the hostname should be the same.

You need to go to lentsencrypt manager (install it)

go to “Custom Install of Letsencrypt”

and fill the details as follows :
Domain :
Path : /usr/local/apache/htdocs/
UserName : nobody
Email :
IP : your Server IP
Port : 443

hit install ssl

go to /usr/local/cwpsrv/conf.d/ and edit cwp-ssl.conf replace all with below lines :

Listen 2031

<VirtualHost SERVER-IP:2031>
        ServerName SERVER-IP
        SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/
 SSLCertificateKeyFile /etc/letsencrypt/live/
 SSLCertificateChainFile /etc/letsencrypt/live/
 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

Don’t forget to replace the hostname and the server Ip with your server details
save and restart cwp

service cwpsrv restart

Comments are closed.