Skip to main content
DigiCert, Sectigo and GeoTrust SSL certificates
+90 850 259 76 06 WhatsApp Support Become a Reseller
SSL Certificates
Brands
Code Signing LEI Code
Tools
Support Contact WhatsApp Cart
Language
Currency
Get an SSL Certificate
Guides

CWP (Control Web Panel) SSL Certificate Installation and CSR Creation

SSL certificate installation, CSR creation and AutoSSL configuration via CWP (Control Web Panel). CentOS/AlmaLinux panel guide.

13 min read

CWP (Control Web Panel, formerly CentOS Web Panel) is a free and powerful hosting control panel used on CentOS, AlmaLinux and Rocky Linux servers. In this guide, we explain step by step SSL certificate installation, CSR creation and Let's Encrypt configuration on CWP.

💡 Information: CWP supports Apache, Nginx and LiteSpeed web servers. SSL configuration may differ depending on the web server you use.

1. Creating CSR

Via CWP Panel

  1. Login to CWP admin panel (https://server-ip:2031)
  2. From the left menu "WebServer Settings" → "SSL Certificates"
  3. Click on the "Generate CSR/Key" tab
  4. Fill in the information:
    • Domain: example.com
    • Country: TR
    • State: Istanbul
    • City: Istanbul
    • Organization: Company name
    • Key Size: 2048 bits
  5. Click the "Generate" button
  6. Copy CSR and Private Key

Generating CSR with SSH

# Creating CSR and Private Key
openssl req -new -newkey rsa:2048 -nodes \
  -keyout /etc/pki/tls/private/example.com.key \
  -out /etc/pki/tls/certs/example.com.csr\
  -subj "/C=TR/ST=Istanbul/L=Istanbul/O=Company/CN=example.com"

# CSR verification
openssl req -text -noout -verify -in /etc/pki/tls/certs/example.com.csr

2. Manual SSL Certificate Installation

  1. CWP admin → "SSL Certificates" → "Install SSL" tab
  2. Fill in the following fields:
    • Certificate File (.crt): Certificate content
    • Certificate Key File (.key): Private key
    • Certificate Chain File (.ca-bundle): CA Bundle
  3. Select Domain
  4. Click the "Install" button
  5. Restart the web server

SSL Installation from Command Line

# Copying certificate files
cp example.com.crt /etc/pki/tls/certs/
cp example.com.key /etc/pki/tls/private/
cp ca-bundle.crt /etc/pki/tls/certs/

# Check Apache configuration
apachectl configtest

# Apache restart
systemctl restart httpd

3. Free SSL with Let's Encrypt

  1. CWP admin → "WebServer Settings" → "AutoSSL"
  2. Switch to "Issue SSL" tab
  3. Enter the domain name (tick the options including/excluding www)
  4. Click the "AutoSSL" button
  5. The certificate will be installed automatically
⚠️ Note: Let's Encrypt certificates have a validity period of 90 days. Check out CWP's auto-refresh cron job: crontab -l | grep ssl

4. HTTPS Redirect

Via CWP Panel (Apache)

CWP offers automatic HTTPS redirection option in domain settings:

  1. "User Accounts" → Related account → "Manage"
  2. Enable the "Force HTTPS" option in the "SSL" tab

Manual Redirect with .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

5. Common Errors and Solutions

ErrorSolution
AutoSSL failedMake sure ports 80 and 443 are open on the firewall
SSL file permissions errorchmod 600 /etc/pki/tls/private/*.key
Nginx SSL configuration errorNginx config test: nginx -t and systemctl restart nginx
Vhost configuration is corruptRebuild virtual server configurations with CWP → Rebuild Vhosts

Frequently Asked Questions

Which web servers does CWP support?

CWP; Supports Apache, Nginx, Nginx + Apache (reverse proxy) and LiteSpeed ​​web servers. SSL configuration is automatically applied according to the web server you choose.

Can I install wildcard SSL in CWP?

Yes, you can install the paid wildcard SSL certificate manually. Let's Encrypt wildcard requires DNS verification and CWP has limited support for this.

📌 From DataSSL: We offer affordable SSL solutions for all domains in your CWP panel. Check out SSL certificates →
Share this post
Ali Yiğit
Yazar

Ali Yiğit

Recommended SSL Certificates

All Products
EV Certum

Certum Premium EV Multi-Domain SSL

Protect multiple domains at EV level with Certum Premium EV Multi-Domain SSL. Company name visible i

$419.00 /yr
Details
EV Certum

Certum Premium EV SSL

Get the most comprehensive identity validation with Certum Premium EV SSL. Extended validation, comp

$654.58 /yr
Details
EV DigiCert

DigiCert Basic EV SSL

Extended validation with DigiCert Basic EV SSL. The organization name appears in the certificate det

$381.82 /yr
Details