SSL

0 min read

SSL adalah secure socket layer yang mampu men-encrypt trafik website. Sekarang kita install yg gratisan pada server, requirementnya :

  • Domain sudah konek ke server
$ sudo su
$ add-apt-repository ppa:certbot/certbot
$ apt update
$ apt install python-certbot-nginx
$ nano /etc/nginx/sites-available/default
//ganti dengan domain kita
server_name example.com www.example.com;

$ service nginx restart
$ ufw delete allow 'Nginx HTTP'
$ ufw delete allow 'Nginx HTTPS'
$ ufw allow 'Nginx Full'
$ certbot --nginx -d namadomain
//balas 1 jika tetap bisa menggunakan http
//balas 2 jika semua request akan melalui ssl

$ certbot renew --dry-run

selesai.

Bima Sena

Leave a Reply

Your email address will not be published. Required fields are marked *