LIVE NOW
DartDay - 24 Hours of Blow Out Deals!
00d : 00h : 00m : 00s
Go To the Event

Knowledge Base

Find detailed guides, step-by-step tutorials, and FAQs to help you get the most from your DartNode services.

home web-servers server-setup

How to Add a Domain and SSL Certificate

How to Add a Domain and SSL Certificate

  1. Point your domain's A record to your server's IP address at your DNS provider.
  2. Install Certbot for free SSL certificates:
    # Ubuntu/Debian
    apt install certbot python3-certbot-nginx -y
    
    # CentOS/AlmaLinux
    dnf install certbot python3-certbot-nginx -y
  3. Obtain and install the certificate:
    certbot --nginx -d yourdomain.com -d www.yourdomain.com
  4. Follow the prompts to configure automatic HTTPS redirection.
  5. Certbot auto-renews certificates. Verify the timer is active:
    systemctl status certbot.timer

For Apache

# Ubuntu/Debian
apt install certbot python3-certbot-apache -y
certbot --apache -d yourdomain.com -d www.yourdomain.com

# CentOS/AlmaLinux
dnf install certbot python3-certbot-apache -y
certbot --apache -d yourdomain.com -d www.yourdomain.com