This aritible is how to keep you to set up SSL by Let’s Encrypt (it's free)

Official site: https://letsencrypt.org/

1. Log in into Shell

Refer: http://knowledgebase.younetco.com/gettingstarted/article/article_916

2. Set up Let's encrypt

sudo certbot --nginx --nginx-server-root /usr/local/nginx/conf/ -d yutootv.com -d www.yutootv.com

Please be sure that your server supports for both www and non-www. If one in two, please remove unuseful one

The result

 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/yourdomain/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/yourdomain/privkey.pem
   Your cert will expire on 2018-12-19. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Note: Our example is on NGINX server, you can find on home page of Let's encrypt for other enviroments

Please set up Cron Job for it to be auto renewed

this comand "certbot renew" (remove quotes)

Great! You're complete now.

September 20, 2018
Category: Developers