Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

SSL Setup On Xtream Ui

to install SSL on XTREAM UI Panel login to ssh and run the bellow commands one by one

sudo apt-get update


sudo apt-get install software-properties-common -y
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot -y

sudo certbot certonly --standalone --preferred-challenges http -d yourdomain.com

note: replace “yourdoamin.com” with your domain name that connected to your
xtream ui

nano /home/xtreamcodes/iptv_xtream_codes/nginx/conf/nginx.conf

#Add this lines after the the line of listen 25500 and add ssl after port number

ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/yourdomain.com/chain.pem;
ssl_protocols TLSv1.2 TLSv1.3;

#ssl_dhparam dhparam.pem;
ssl_prefer_server_ciphers off;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-
SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-
ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-
SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_ecdh_curve auto;
ssl_session_timeout 10m;
ssl_session_cache shared:MozSSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver 1.1.1.1 1.0.0.1 valid=300s;
resolver_timeout 5s;
sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -t

sudo /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload

sudo certbot renew --dry-run

sudo lsof -i -P -n | grep LISTEN

note: replace your domain name with yourdomain.com

You might also like