write this line in termenal
sudo nano /etc/nginx/sites-available/default
and add this lines in
server
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl on;
ssl_certificate /etc/ssl/Certificate.crt;
ssl_certificate_key /etc/ssl/private.key;
after edit click
Ctrl+s to save
and
Ctrl+x to exit
now Restart NGINX
# Check NGINX config
sudo nginx -t
# Restart NGINX
sudo service nginx restart
#OR
sudo /etc/init.d/nginx restart