Перейти к основному содержимому
SSL-сертификаты DigiCert, Sectigo и GeoTrust
+90 850 259 76 06 WhatsApp Поддержка Стать реселлером API для реселлеров
SSL-сертификаты
Бренды
Подпись кода Entrust HSM Thales HSM Код LEI
Инструменты
Поддержка Контакты WhatsApp Корзина
Язык
Валюта
Получить SSL-сертификат
Руководства

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 мин чтения

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
    • Страна: TR
    • State: Istanbul
    • City: Istanbul
    • Организация: Название компании
    • 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

ОшибкаРешение
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 и systemctl restart nginx
Vhost configuration is corruptRebuild virtual server configurations with CWP → Rebuild Vhosts

Часто задаваемые вопросы

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 →
Поделиться этой статьёй
Ali Yiğit
Yazar

Ali Yiğit

Рекомендуемые SSL-сертификаты

Все продукты
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 /год
Подробности
EV Certum

Certum Premium EV SSL

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

$654.58 /год
Подробности
EV DigiCert

DigiCert Basic EV SSL

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

$381.82 /год
Подробности