# SSL Configuration
This guide walks you through configuring SSL certificates for your PanelAlpha installation.
# Overview
PanelAlpha can operate using either a domain name or an IP address. When using a domain name, you can configure SSL certificates to secure HTTPS connections. This guide covers two methods:
- Let's Encrypt certificates — Free SSL certificates with automatic renewal
- Custom certificates — Use your own SSL certificates from any certificate authority
Downtime note: Requesting or swapping certificates requires stopping PanelAlpha containers briefly to free up port 80. Plan a short maintenance window.
# Prerequisites
Before configuring SSL certificates, ensure you have:
- Root access to your server via SSH
- Domain name properly configured (if using domain-based SSL)
- DNS resolution pointing to your server's IP address
- Firewall configuration allowing ports 80 and 443
# Let's Encrypt SSL Certificate
Let's Encrypt provides free SSL certificates with automatic renewal. This is the recommended option for most users.
# Installation Process
Access your server via SSH with root privileges:
ssh root@your-server-ipVerify DNS resolution:
nslookup your-domain.comCheck firewall settings — Ensure ports 80 and 443 are not blocked.
Stop PanelAlpha temporarily (the UI and API will be unavailable until restarted):
docker compose -f /opt/panelalpha/app/docker-compose.yml downRequest the SSL certificate using certbot:
docker run -it --rm --name certbot \ -v "/etc/letsencrypt:/etc/letsencrypt" \ -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ -p 80:80 \ certbot/certbot certonly --standalone \ --cert-name panelalpha-app \ -d YOUR_DOMAINImportant: Replace
YOUR_DOMAINwith your actual domain name.Complete the certificate request by following the terminal prompts:
- Enter your email address
- Accept the Terms of Service
Configure PanelAlpha to use the certificates:
sed -i~ '/^SSL_CERT_FULLCHAIN=/s#=.*#=/etc/letsencrypt/live/panelalpha-app/fullchain.pem#' /opt/panelalpha/app/.envsed -i~ '/^SSL_CERT_PRIVKEY=/s#=.*#=/etc/letsencrypt/live/panelalpha-app/privkey.pem#' /opt/panelalpha/app/.envRestart PanelAlpha:
docker compose -f /opt/panelalpha/app/docker-compose.yml up -d
# Certificate Renewal
Let's Encrypt certificates expire every 90 days. PanelAlpha provides an automated renewal script.
To renew your certificate:
bash /opt/panelalpha/app/letsencrypt-renew.sh
Wait for the confirmation message.
Automated Renewal Setup:
Add to crontab to check for renewal twice daily:
0 12,0 * * * /opt/panelalpha/app/letsencrypt-renew.sh >/dev/null 2>&1
# Custom SSL Certificate
If you have an SSL certificate from a commercial certificate authority, follow these steps:
# Installation Process
Access your server via SSH with root privileges:
ssh root@your-server-ipPrepare your certificate files:
- Full chain certificate file (includes your certificate and intermediate certificates)
- Private key file
Stop PanelAlpha temporarily:
docker compose -f /opt/panelalpha/app/docker-compose.yml downConfigure PanelAlpha to use your certificates:
sed -i~ '/^SSL_CERT_FULLCHAIN=/s#=.*#=/path/to/fullchain#' /opt/panelalpha/app/.envsed -i~ '/^SSL_CERT_PRIVKEY=/s#=.*#=/path/to/privatekey#' /opt/panelalpha/app/.envImportant: Replace
/path/to/fullchainand/path/to/privatekeywith actual paths.Restart PanelAlpha:
docker compose -f /opt/panelalpha/app/docker-compose.yml up -d
# Certificate Renewal
Custom certificates need manual renewal:
- Obtain new certificates from your certificate authority
- Update the certificate files on your server
- Follow the installation process above with the new certificate paths
# Post-Installation Configuration
# Update PanelAlpha URLs
After installing SSL certificates, update your PanelAlpha configuration to use HTTPS URLs:
- Access the PanelAlpha admin panel
- Navigate to System Configuration → General Configuration
- Update the following settings:
- Application URL — Change to
https://your-domain.com - Admin URL — Change to
https://your-domain.com:8443
- Application URL — Change to
For detailed instructions, see General Configuration.
# Verify SSL Installation
After completing SSL configuration:
- Test HTTPS access by visiting
https://your-domain.com - Check certificate validity using online SSL checker tools
- Verify automatic HTTP to HTTPS redirection
- Test admin panel access via HTTPS
# Common Problems
If you encounter issues, refer to the Troubleshooting Center for common problems and solutions.
For additional support, contact our support team (opens new window).